qemu.tests.cpu_hotplug: Make cpu hotplug command configurable.

cpu_set command will be removed in new qemu. So make cpu hotplug
 command configurable.

'cpu_set 1 online' will always sent out as human monitor command no matter
 qmp support cpu_set or not.

Update it to 'cpu_set cpu=1,state=online'. send_args_cmd() will transfer
it to correct human monitor command 'cpu_set 1 online'. Or correct qmp
monitor command if qmp support it.

Signed-off-by: Feng Yang <fyang@redhat.com>
tests.netperf: Update iptables stop command to ignore fail status

In some host 'service iptables stop' command exit with error code 5.
It will fail our case.

Signed-off-by: Feng Yang <fyang@redhat.com>
shared.cfg.guest-os.Windows: Ignore post_cmd status in multi_disk case

Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.qemu_vm: support vhostfd in netdev.

vhostfd only works when vhost on.
add enable_vhost parameter. set default value to 'yes'
Signed-off-by: Feng Yang <fyang@redhat.com>
utils_libvirtd: if libvirt is not availible in host, No error, but a warning.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
virt: modify libvirtd_status() to libvirtd_is_running()

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.aexpect: Fix old class Spawn definition.

The base class Spawn for ShellSession was defined in old way(class Spawn).
Then we can not use super() for inherited classes:
TypeError: super() argument 1 must be type, not classobj

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
README.rst: add basic troubleshooting instructions

As suggested by Juan Quintela.

CC: Juan Quintela <quintela@redhat.com>
Signed-off-by: Cleber Rosa <crosa@redhat.com>
virttest.env_process: Fix postprocess logging

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
qemu.tests.cfg: Enable qemu guest agent test for RHEL guest

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.cfg: Disable xhci on old windows for RHEL host

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.tests.cfg: Move usb_(re)boot config for win guest to Windows.cfg

These parameters would be overridden by the parameters in
each usb device config block. So move it into guest-os's
config files.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu.balloon_check: reset the memory to origin value

The memory should be reset to the origin value after
evict or enlarge. So that the next iterations tests can
pass when check memory before test

Signed-off-by: Mike Qiu <qiudayu@linux.vnet.ibm.com>
Merge pull request #638 from zhouqt/minor-fix

qemu: Minor fixes for qemu test cases
virttest.qemu_devices: Fix QStringDevice.cmdline problem

when False/None was set as cmdline this device always failed.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
tests: Correct the wrong import module for trans_hugepage_memory_stress

Should import utils under client but not under client.shared.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
shared.control: Update the stress_memory_heavy.control

Fix some variables missing problem and typo.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.aexpect: A work aound for new style class pickle

The new style class will not call __getinitargs__ anymore. So
this will help aexpect works as we expect.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Fix libvirt_xml/vm_xml.

This patch fix define and undefine method in VMXML class to return False
if define or undefine fail.

Fixing the comment of virsh.undefine by the way.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
libvirt.tests: Fix testcases to new XML define-undefine.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>