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>
libvirt.testcases: Enhancements of stress migration.

* Use common parameters for remote info and vm info.
* Use specific parameters for stress tool.
* Fix pylint complaints for stress migration module.
* Fix pep8 errors.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
virt-libvirt: Fix typo in virsh schedinfo(qemu) test

os.path.join("/cgroup/cpu", "/libvirt/qemu", "vm1") will
return "/libvirt/qemu/vm1", not "/cgroup/cpu/libvirt/qemu/vm1",
so I modify 'libvirt_cgroup_path' default value from
"/libvirt/qemu" to "libvirt/qemu"

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #956 from liyangfnst/schedinfo

virt-libvirt: Fix typo in virsh schedinfo(qemu) test
libvirt-svirt: Add test for VM starting and destroying in svirt.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-svirt:Add test for save and restore in svirt

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt_vm: fix save_to_file and restore_from_file method.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
iometer_windows.performance.msi_on: disable WinXP/2003 as it dont support msi

WinXP/2003 dont support MSI, so this case
is expected to fail

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
Ubuntu guest system_reset_bootable fix

As Ubuntu would make grub stop OS selection screen
when it encountering power loss, thus case after
system_reset_bootable would be blocked, adding
a workaround, OS older then 12.04 are not cared.

Signed-off-by: Xiaoqing Wei <xwei@redhat.com>
Merge pull request #840 from yumingfei/stress_migration

libvirt.tests: Add migration test for virsh_migrate_stress.
libvirt-xml: improvement for network xml

Add slot for 'portgroup', 'bandwidth_inbound', 'bandwidth_outbound'

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-xml: implement interface in devices.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-xml: Add methods to make xml take effect.

*Add undefine method to remove network.
*Add define method to define network from self.xml.
*Add start method to start network.
*Add sync method to call undefine and define.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt-tests: Add test for network bandwidth.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virt-libvirt: network bandwidth test use default config

Instead of hard-coding the 'default' config (which may not be the
same for everyone) look up the test-defined test-network and
search down the nic from that.

N/B: The portroup test may Fail due to external
interference, test environment must be tightly
controlled for this one test.

Signed-off-by: Chris Evich <cevich@redhat.com>