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
qemu/tests/unittest.py: fix typo

Signed-off-by: Cleber Rosa <crosa@redhat.com>
tests.unattended_install: Close all opened files

There are some files opened without closing, this
patch tries to close them all.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
qemu: Add new test boot from device

This patch adds new test boot from device(hd/usb/scsi-hd/scsi-cd/scsi-block).

changes from v1:
1) add subtests(boot_from_hd, boot_from_scsi_hd) into the patch.
2) modified some function.

changes from v2:
1) add subtests(boot_from_scsi_cd, boot_from_scsi_block) into the patch.
2) add some function, such as: preprocess_remote_storage(), preprocess_remote_storage()

changes from v3:
1) add master_cdroms/cleanup_cdroms function.

changes from v4:
1) modified some functions.

changes from v5:
1) change some error.TestFail to error.TestError
2) add cleanup function before raising exception
3) fix some grammer error

changes from v6:
1) remove tmp cd file
2) update check result branch

changes from v7:
1) update some code style issue.

changes from v8:
1) rename master_cdroms function name
2) update code style issue
3) add check some param

changes from v9:
1) update code style

Signed-off-by: Shuping Cui <scui@redhat.com>
Signed-off-by: Feng Yang <fyang@redhat.com>
qemu.tests.cfg: Update usb tests config

* Disable usb_nodev and usb_host on RHEL6 host
* Limit usb_audio to RHEL7+ host.
* Use human monitor for usb_hotplug test.
* Limit usb_hotplug test to RHEL6+ guest.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Feng Yang <fyang@redhat.com>
qemu.tests.usb_storage: Get block device real path before using it

Some guests (eg, RHEL4.9) can't mount the usb storage device which
path contains quotation mark, thus this patch make test script
try to get the real path before using it.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Suqin Huang <shuang@redhat.com>
qemu.tests.cfg.usb: Disable min/opt_io_size checking in RHEL3/4/5

These guests don't support these kernel option, so disable them
directly.

Signed-off-by: Qingtang Zhou <qzhou@redhat.com>
Acked-by: Xiaoqing Wei <xwei@redhat.com>
qemu: Add pipetest.c script used in ipi_x2apic

Signed-off-by: Feng Yang <fyang@redhat.com>