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>
cpuid: handle "restricted to guest" message as TestNAError too

The RHEL-6 qemu-kvm binary prints that message when SVM is not available
and can't be used. Treat this case as TestNAError too, as it means the
test can't be run, not a test failure.

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
qemu_cpu.cfg: ignore known Opteron_G* CPUID difference introduce on RHEL-6.1

Those bits were changed on RHEL-6.1 without any compat code, so we need
to ignore the differences we find.

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: check_cpuid_dump: use cpu_model_flags

Use cpu_model_flags when running the test and reading CPUID dumps.

In some cases it will be useful to check if dumps are OK on specific
cases where flags are removed (e.g. removing the "svm" flag when running
without -enable-nesting). This change will allow dumps for those special
cases to be used if cpu_model_flags is configured on qemu_cpu.cfg.

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