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>
shared.cfg: Check SSDT for both S3/S4 tests

The SSDT shows whether the bios set the suspend status
correctly, so it's another test point for both S3/S4
tests.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
virttest.qemu_vm : Get vcpu threads by funtion get_vcpu_pids

Now we can using funtion get_vcpu_pids() to get vcpu thread

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Shared/cfg/base.cfg: make 'vcpu_thread_pattern' support both type monitors

This patch modify the pattern of 'vcpu_thread_pattern',
make the pattern can support both human and qmp monitor.

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
virttest.utils_misc: Add cpu model Opteron_G5 to get_host_cpu_models

Add the new AMD cpu model to the the cpu_model list.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #654 from ypu/cpumodel

virttest.utils_misc: Add cpu model Opteron_G5 to get_host_cpu_models
env_process: preprocess_vm start_vm fix.

(1). Introduce a param named "kill_vm_before_test".
(2). Fix when restart_vm=yes.
(3). Fix when vm need to paused.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Add kill_vm_before_test=no in base.cfg

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>
Merge pull request #577 from FengYang/fix

tests.netperf: Update iptables stop command to ignore fail status.
virttest.env_process: Remove unused import libvirt_vm

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Merge pull request #620 from ypu/libvirtd

virttest.env_process: Remove the unused import
disable hdparm test for virtio-scsi disk

hdparm can't read sensor data from virtio-scsi disk, so disable it;

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.tests: disable lsi device on Host_RHEL6.5 and Host_RHEL7.0

since lsi device is not support by RHEL6.5 and RHEL.7.0 host, so disable
it; And disable virtio-scsi on WinXP guest because it not support too;

Signed-off-by: Xu Tian <xutian@redhat.com>
virttest: fix save_to_file time when use qmp monitor

when QMP monitor used, migrate complete check always failed until
timeout; This commit update check method and raise QemuMigrationTimeout
expection when migrate timeout;

Signed-off-by: Xu Tian <xutian@redhat.com>
virt.tests.jumbo : Fix some issues of jumbo test

make a check before delete an arp item.
using 'get_win_wol' to get the drive number of win_utils

Signed-off-by: Yunping Zheng <yunzheng@redhat.com>
Merge pull request #664 from humanux/jumbo

virt.tests.jumbo : Fix some issues of jumbo test
Merge pull request #659 from xutian/small_fix

Some small fix
shared.deps.finish.bat: Add vds service start in finish.bat

Start this service to ignore diskpart failed in some windows guests
like win2003.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
Acked-by: Xiaoqing Wei <xwei@redhat.com>