libvirt.tests: Enhancements of stress migration tests.

* Support migration in thread for expanding.
* Fix bugs and some pylint problems.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add cross migration test for virsh_migrate_stress.

Cross migration:
local     =====      remote
           <-         vm1
vm2        ->
~~
           <-         vm2
vm3        ->

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add migration testcases when vms are booting.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Expand stress type for migration stress test.

 * Seperate cpu and memory stress of stress tool.
 * Add timeout parameter for migration threads.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Running stress tool on host for stress migration.

Do migration when stress tool is running on host:
1.Half of total memory is consumed.
2.Host is short of memory(Free memory is not enough for vms.)

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libvirt.tests: Add network check after migration for stress migration test.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
libivrt: Fix virsh_domjobabort race condition

Sometimes the virsh_domjobabort test failed with:

error: Requested operation is not valid: no job is active on the domain

because the job finished earlier than the 'domjobabort' command was
issued.  This patch makes all the relevant jobs go out to a named pipe
which doesn't read the whole domain in order to stop the job until the
abort request.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
libvirt: virsh_domjababort: update code for PEP8 compliance.
Moving build.cfg back to the qemu directory

Turns out this change was not necessary and was causing
quite a bit of confusion on other test developers.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest.qemu_vm: modify nic hotplug fd

In autotest python get the fd by os.open("dev/net/tun"),
then using getfd pass the fd to the qemu process. some
times the fd number qemu get is not same as parent's fd.
will call nic hotplug error, this patch fix this issue.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>

Conflicts:
	virttest/qemu_vm.py
openvswitch: Fix error due to moving with python modules

makes load_module test working again

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Updating build_install.py to work with newer changes in qxl, spice-vdagent and spice-gtk

Signed-off-by: Swapna Krishnan <skrishna@redhat.com>
Add test for snapshot-dumpxml

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add snapshot recovery function here
README.rst: Making python-gstreamer required pkg more prominent
Introducing samples directory

The samples directory is supposed to contain example
tests that one can use as a test skeleton, so they can
get started by simply typing

cp samples/template.py tests/new_test.py

And start editing their new test.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
README.rst: Adding first new test docs

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Make test can create env file on its own directory

When I execute libguestfs tests, "libvirt/env" will be updated/created,
there is no env file created in "libguestfs/".So do this modification to
make env file can be created/updated in "libguestfs/" and other test
directory.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
qemu: Add sr_iov_irqbalance test case.

This case check whether irqbalance service works in guest with vf/pf.

Signed-off-by: Feng Yang <fyang@redhat.com>
use blacklist instead of whitelist to filter out unsupported platform

so even there's new release we dont have to modify the cfg
and watchdog device is supported on all Linux distro

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>