generic.tests: Update the method get ncpu from server

Sometime the output from server include some unexpect letters include
some numbers. So the old method will failed to get the correct cpu
number.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests: Add a test case for change queue with migrate

Add a new test case for change queue with migrate. Update the code
to handle the serail session break during test.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
qemu.tests.cfg: Update some config for block_resize

Since _equal suffix not support now,
so update some config for windows guest:
    1. Change guest_prepare_cmd_equal option to guest_prepare_cmd.
    2. Add rescan step for disk_update_cmd.

Signed-off-by: Shuping Cui <scui@redhat.com>
qemu.test: Update the method for start vm in win_virtio_update

The old code will cause problems in post process for images as the
vms is set to empty.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
ping: modify the max ping packet size for windows guest

Linux support the max ping packet size is 65507, but windows is 65500.
For windows systems, MSFT has limitation for the max size 65500.

Signed-off-by: Cong Li <coli@redhat.com>
qemu.tests.multi_disk: Add check_guest_proc_scsi flag for linux guests

Check guests proc scsi only support Linux guests, so add a flag to check
it when using virtio-scsi.

Check guests proc scsi only support Linux guests, so disable for
Windows guests.

Signed-off-by: Shuping Cui <scui@redhat.com>
qemu.tests.cfg: Update cfg for multi_disk

Signed-off-by: Shuping Cui <scui@redhat.com>
Merge pull request #103 from ypu/win_virtio_update

qemu.test: Update the method for start vm in win_virtio_update
nic_hotplug: needs booting guest without nic before hot-plug

According to the test case, needs booting guest
without nic before nic hot-plug.

Signed-off-by: Cong Li <coli@redhat.com>
generic.tests: fix nfs serivce not stop issue

NFS serivce listening on both ipv4 and ipv6 adress. And it mounted with
'localhost', both ipv4 and ipv6 connection setup. In script, only reject
IPv4 pack but ipv6 connection still working. So write error not be trige,
VM still runing, so verify VM 'paused' failed.
Fix this defeat by update iptables command and bind nfs server listen on host
IP.

Signed-off-by: Xu Tian <xutian@redhat.com>
qemu.tests: Small bug fix for ksm_base

Correct the type of shared_mem in script. And enlarge the guest_script_overhead
in cfg file to ignore the memory leak lead in guest which will lead to the memory
allocate speed slow and make case failed in the memory allocate step.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
multihost: Fix multihost control file.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
Merge pull request #111 from jzupka/fix_multihost

multihost: Fix multihost control file.
qemu.tests: add case to remove interface while guest is using

Remove the tap/macvtap interface in host while guest is using it.

Signed-off-by: Xiangmin Han <xhan@redhat.com>
Merge pull request #112 from ypu/rebase-71

qemu.tests: add case to remove interface while guest is using
Merge pull request #98 from CongSmile/ping

ping: modify the max ping packet size for windows guest
Merge pull request #105 from CongSmile/nic_hotplug

nic_hotplug: needs booting guest without nic before nic hot-plug
Merge pull request #100 from spcui/multi_disk

Multi disk bugs fix
Merge pull request #96 from spcui/block_resize_fix

qemu.tests.cfg: Update some config for block_resize
Merge pull request #108 from xutian/fix_nfs_corrupt

generic.tests: fix nfs serivce not stop issue