virttest.qemu_devices: Add support to execute this qemu with options

Add function DevContainer.execute_qemu, which executes this VM qemu
with additional "options".
This function is intended to be used to gather additional informations
like supported device options, etc.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Set 'serial' parameter only when qemu supports it

Most qemu versions supports setting -drive serial=xxx, but only latest
ones supports setting serial using -device serial=xxx.
With this patch we first check, if qemu supports -device serial=xxx
and in case it does not, we skip it (it's set by -drive anyway).

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virttest.qemu_devices: Cache the last execute_qemu output

As this function might be called multiple times, cache the last
output and reuse it.

For example multi_disk should benefit from this as it adds hundreds
disks and each one of them gathers informations about supported
options.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
virt: multi_host Use enhancement in new cart config.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Fix bug in migration for spice protocol.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Some fix steps and multi_host migration.

steps:
  allow start steps test with other VM than main_vm.

multi_host migration:
  makes timeouts little longer due to slow win tests.
  add options to skip logging to vm.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Expands multihost migration test.

Allow test start pre_sub_test before migration.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds multihost test migration with GPU in VGA mode.

Guest has to be prepared for running with qlx
driver. Drivers have to be properly installed
before starting of the test. Otherwise the test
could FAIL.
tests steps:
    1) starts windows XP guest on first host
    2) try login to guest
    3) starts presubtest steps with
       stepsfile = WinXP-set-VGA-mode.steps
       enable VGA mode on GPU
    4) after presubtest finished starts migration
       to host2
    5) after migration starts postsubtests with
       stepfile = WinXP-reset-VGA-mode.steps

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Cart config memory and code style optimization.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds cart config variant name to file mapping.

Allows better tests printing.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Improves list tests function.

Allow use the new params built-in variable which maps file to variant name.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds possibility to filter tests based on netconf.

Some of tests not works with nettype=user, but there wasn't
good way how to filter the tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Fix libguestfs test.cfg to be able be started with ./run

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds subtests variants name.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Allows filter only subtests specific for test type.

Test type: qemu, libvirt, openvswitch, libguestfs.
Adds parameter "--type-specific" to command run.
By adding this parameter run filter only type specific subtests for
list and for running the tests.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
virt: Adds qemu_img and bridge_mode process to general_options.

qemu_img is necessary for some libvirt and libguestfs tests.
bridge_mode is necessary for some libvirt and libguestfs tests too.

Signed-off-by: Jiří Župka <jzupka@redhat.com>
copy-ref-dumps: don't copy empty files

Empty dump files are not useful for the test code.

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
qemu_cpu.cfg: fix typo on cpu64-rhel5 variant name

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
qemu_cpu.cfg: unify similar rules in a single one

Simplify the config file a little bit.

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: don't setup USB devices

The CPUID dump test kernel doesn't need USB devices.

This allows some older QEMU versions to be tested.

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>