libvirt.tests: Support multiple devices for multifunction test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add testcases for single_device of multifunction.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add testcases for multi_devices in multifunction.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt:Fix a hidden bug in virt_filesystems

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt:Add a function to get primary disk filesystem type

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest: Move nic_script under tap device branch in add_net

nic_script should be parameter for tap devices, so move it to
the right place. And now we can not control guest to use nic_script
or fds with cfg files as tapfds are automatic get by framework functions
only depends on the host env. So update the judgement as if we setup
nic_scritp, will let guest use script, otherwise will try to use fds.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.test: make migration_with_netperf support windows guest

This patch make migration_with_netperf test support windows guest.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.utils_netperf: make the remote netperf path independent

This patch make the netperf path independent, the script will
re-geting the netperf package name when decompress the compressed
package.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
test.qemu.test: Refactor the code of netperf_udp

This patch refactor the code of netperf_udp using utils_netperf.
also make this test support windows guest.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test: modify the configration of virtual_nic_send_buffer

We need update the configration of virtual_nic_send_buffer, sinece
refactor the netperf_udp

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
libvirt: Add virsh dompmsuspend command test

New testcase:virsh_dompmsuspend.py/cfg
dompmsuspend(name, target, duration=0, **dargs)
dompmwakeup(name, **dargs)
tests.mac_change: Support file transfer test after mac changing

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.cfg.device_assignment: Add new device_assignment sub case configure.

Signed-off-by: Feng Yang <fyang@redhat.com>
share.cfg.guest-os: Limit pf_mac_change test case on guest.

pf_mac_change case could not work on WinXP.
Set change_cmd parameter for Windows/Linux guest.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.pci_hotunplug: Support sub test before/after unplugging.

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests: Add pf hotplug test case.

Signed-off-by: Feng Yang <fyang@redhat.com>
Add test for snapshot current and parent

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
virttest: Support get VF from specified sr-iov PF.

We can set device_name to PF's devname in host.

If PF not specified, will try to get VF from all PF in turn.

Signed-off-by: Feng Yang <fyang@redhat.com>
sr-iov: virttest.test_setup: Try to get more pxception when VF/Pf clean up command fail.

Also delete self.dev_unbind_drivers.

Signed-off-by: Feng Yang <fyang@redhat.com>
virttest.test_setup: Add devices parameter for get_pf_devs() and get_vf_devs()

Signed-off-by: Feng Yang <fyang@redhat.com>