virsh_attach_detach_disk: attach tmp disk with config option into offline guest

We want to attach the disk with --config parameter, because we have to be sure,
that the disk will be attached using all versions of libvirt. But to use this
parameter we have to at first shutdown the guest because this chagne will affect
next boot of the guest.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_attach_detach_disk: move add acpi module after attach/detach required disks

To reduce restart count and time needed to do it I've just move this code after
disks preparation. For disk preparation you need to have the guest offline and
it would be pointless to start the guest, modprobe the acpiphp and than shutdonw
the guest again to attach/detach required disks.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_attach_detach_disk: attach second temp disk for the detach_twice test

We have to attach two disks for the detach_twice test in order to run the test.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_attach_detach_disk: make the proper return status checking

It's obvious that if you are running the attach/detach config test
that you will not see the change in the xml returned by dumpxml of
a live guest.

This patch also fixes whitespace issues and typo in error message.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_attach_detach_disk: improve 'acpiphp_module_modprobe' function

Executing the 'rpm -qa | grep redhat-release' on non RHEL system or
non RPM system will cause the tests to fail. Adding few more conditions
resolves this issue.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
virsh_attach_detach_disk: resume guest before we check the xml file

On newer libvirt there is a fix for a bug, that xml file is updated
before guest is resumed. The correct way is that the xml file is
updated after the guest is resumed.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
libvirt: virsh_cmd - Fix 'acpiphp_module_modprobe' function

If the command rpm --version fails, it means this command
is not present there. Fix the test that checks this condition.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt.qemu.test.systemtap_tracing : make the test more robust

This patch make the systemtap_tracing test more robust.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virt.tests: Updates to netperf

Get netperf src package from web;
Make the script compatible with netperf 2.6.0;
Modify the method of get winutils vol;
Modify the method of start netserver in windows guest
Using wait_for  to wait until all net perf clients start to work;
Reorganize the configure file.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
qemu.test.netperf_udp: Some modify of netperf_udp

This patch modify the method of et netperf, make the script support
UDP_RR test, also modify the temporary dir.

Signed-off-by: Yunping Zheng <yunzheng@redhat.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
Merge pull request #1 from autotest/next

Updating with latest changes from autotest:next