libvirt: Fix a bug in virsh_change_media test and modify format

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
virttest.staging: fix module import error

Fix ImportError when import  "error" module and drop unused module 'common'

Signed-off-by: Xu Tian <xutian@redhat.com>
virsh-schedinfo-qemu-posix: fix the cgroup path

Libvirt has changed the path where cgroups are stored and therefore
the tests fails for newer libvirt because it cannot get the value
of cgroups. To fix this, we should check if the old path exists and
eventualy change the path to new one and for sure also check it.

Also, fix incorrect imports used by the modified tests.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
libvirt: Restrict default test set

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
unattended_install: Fix problem with libvirt

In the recent unattended install patchset, we referred
to a VM attribute, serial_consoles, not present on the
libvirt implementation. So add another exception handling
to avoid libvirt installs breaking.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #695 from liyangfnst/change_media

libvirt: Fix a bug in virsh_change_media test
CPUID dump-extraction scripts

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
full CPUID-dump ABI-check test case

This adds a new test function to the cpuid.py test module, where the
CPUID data exposed by QEMU is compared with a full CPUID dump extracted
previously.

The new test code ensures that there are no ABI changes for a given
machine-type + CPU model combination, between QEMU versions.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
CPUID dumps for many machine-types and CPUs

The dumps were generated using the build-qemu-and-dump-cpus, and copied
using the copy-ref-dumps script.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>