libvirt: Add test module for virsh cpu-baseline

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virt: Add virsh function for virsh cpu-baseline

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh net-destroy

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh net-dumpxml.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
libvirt: Add test module for virsh update-device.

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.qemu_vm: Make boot and bootindex to work correctly

This patch will fix wrong boot setup when set 'boot = on' in cfg files
for cases need more than one disk.

When 'boot = on' set in cfg files, will first check if qemu supports
bootindex. If it does, we will use bootindex which start from 0 and
will increase 1 for each image. You can also set the bootindex in cfg
files. If it doesn't, we will setup the first image to 'boot=on', other
images will set to 'boot=off' which is the limit of boot option in qemu.

Also remove the duplicate boot setup line in add_drive()

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

Add test for virsh cpu-baseline
tests: transparent hugepage relocated case add

Set khugepaged to a special set of configuration, monitor the memory
use status in host to see if it fit the behavior we expect.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
tests: Add thp memory stress test

Run stress in memory heavy configure in guest for transparent
hugepage memory stress testing.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
tests: Add a migration case for transparent hugepage

Signed-off-by: Yiqiao Pu <ypu@redhat.com>
virttest.qemu_vm: Eclipse autoformat

No actual changes, just autoformat.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Make scsi format work again

the old scsi format (-drive if=scsi) was disfunctionated by recent
changes.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Use get_free_pci_addr() for every PCI device

Add get_free_pci_addr() everywhere, where PCI device is defined. There
are some changes, which were required because qemu doesn't handle all
devices the same way. Default soundcard and autocreated scsi driver
are using lowest possible addresses so it's necessarily to check for
their presense before we start using this function.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_vm: Fix cdrom handling

The cdrom handling part of create_cmd was corrupted during rebases.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: Makes suspending more verbose.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Repairs rewriting guests params.

solve problem with some tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: guest_suspend test take first vm not only main_vm.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Repairs suspend detect message.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds suspend multi-host tests.

This patch slightly changes structure of basic multihost test
and adds possibility for start sub_test after main migration test.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
To fix qemu-img and qemu-io binary path assignment