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>
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>
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>
virttest.test_setup: Check available before load/unload self.driver.

Sleep 3s after loading self.driver.

Signed-off-by: Feng Yang <fyang@redhat.com>
libvirt-bench: Add test for domstate switching with iozone.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
utils_test: Enhance the run_autotest to support Client-Server model test.

Make host run server procee and copy the autotest to guest to run the client
process.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
tests: Introduce netperf into autotest in virttest.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
utils_test: add ignore_status in BackgroundTest.join().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_bench: Add test for dump with netperf.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_bench: Add test for ttcp from guest to host.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Utils_test: use utils.rmdirs() to replace shutil.rmtree().

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-tests: fix a typo in libvirt_bench_domstate_switch_with_iozone test.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_bench: Adapt the test entry point method name to 'run(..)'.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
qemu:Disable balloon_fix_value case in ppc64

ppc64 platform does not support X86 ACPI s3 and s4 cases,
disable it in ppc64 platform

Signed-off-by: Man Li <limansh@cn.ibm.com>
Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
tests.kdump: Add new sub test for multiple guests

define some functions for kdump, maybe other case
can reuse these functions late.

Signed-off-by: Shuping Cui <scui@redhat.com>