virttest: Libvirt polkit config support in env_process

Libvirt polkit driver supports administrators to setup fine grained
permission rules across client users, managed objects and API operations.

For support libvirt polkit configuration with basic user/objects/API
testing, add LibvirtPolkitConfig class in test_setup and perform the
config in env_process beforce case run start.

Reference:
http://libvirt.org/aclpolkit.html
http://libvirt.org/acl.html#perms

Signed-off-by: Wayne Sun <gsun@redhat.com>
virttest: Add support of unprivileged virsh session

For fine grained unprivileged user API permission testing, virsh session
should be started by unprivileged user. This patch update virsh_exec in
command, VirshPersistent and VirshSession for support once, persistent
and remote unprivileged virsh session.

If unprivileged_user specified in cfg file:
For one time and persistent session, the virsh_exec will be:
su - unprivileged_user -c 'virsh -c qemu:///system'

For remote persistent session, the virsh_exec will be:
ssh -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=password
-p 22 remote_user@remote_ip "virsh -c qemu:///system"

Signed-off-by: Wayne Sun <gsun@redhat.com>
virsh: Add 'ti_file' to snapshot_dumpxml func

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virsh: add an argument options into virsh.start().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virttest.utils_libguestfs: Add part device related APIs
utils_net: add method dellink for Interface class

Implement dellink method in Interface using netlink.
Update arch to define the Constant for util_net.

Signed-off-by: Xiangmin Han <xhan@redhat.com>
Merge pull request #1659 from vanbogithub/bfan-next

virttest.utils_libguestfs: Add part device related APIs
virttest.qemu_vm: update regrex pattern for maxcpus option of smp device

In latest upstream qemu-kvm, help info for smp device changed like
    '-smp [cpus=]n[,maxcpus=cpus][,'
updated regrex pattern to make 'vcpu_maxcpus' param works for latest
qemu-kvm build.

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1589 from waynesun09/polkit

virttest: Add support for libvirt polkit config and testing
Merge pull request #1629 from yangdongsheng/virsh_start_opt

virsh: add options to virsh.start() and change the default value of virsh_exec in VirshSession.__init__()
shared.cfg: recorrect guest OS name

Signed-off-by: Xu Tian <xutian@redhat.com>
Merge pull request #1662 from xutian/fix_max_vcpus

virttest.qemu_vm: update regrex pattern for maxcpus option of smp device
Merge pull request #1652 from Xiangmin/add_dellink_for_utils_net

utils_net: add method dellink for Interface class
nic_hotplug.one_pci.nic_e1000: small fix to the escape character

Signed-off-by: Cong Li <coli@redhat.com>
virttest.utils_libguestfs: Add libguestfs function

sfdisk, sfdisk_l, sfdisk_N, sfdiskM,
sfdisk_kernel_geometry, sfdisk_disk_geometry
Add APIs: mkdir, cp-a, equal, download, checksum-device, checksums-out
Merge pull request #1670 from shi2wei3/file_dir_APIs

Add APIs: mkdir, cp-a, equal, download, checksum-device, checksums-out
Merge pull request #1654 from liyangfnst/snp_dumpxml

virsh: Add 'to_file' to snapshot_dumpxml func
Merge pull request #1665 from xutian/fix_ubt_guestname

shared.cfg: recorrect guest OS name
virttest.utils_libguestfs: Add 5 function interface

lvs_full, lvm_clear_filter, lvm_remove_all,
lvm_set_filter, lvresize_free