cpuid: Add new machine-type names to dump scripts

Also, make the machine-type list configurable using an environment
variable on dump-cpus-from-qemu.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Fix cpuid dump kernel path on boot-and-get-cpuid.sh script

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: New variants for QEMU versions

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Ignore Centaur CPUID leaves on AMD and Intel CPUs

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Ignore known (and harmless) KVM CPUID change

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Ignore known QEMU 1.2 KVM CPUID bug

QEMU 1.2 and older didn't ensure stable KVM feature bits, so ignore them
on pc-1.2 and older machine-types.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Whitelist known tsc-deadline bug from QEMU 1.1

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: CPUID dumps for Intel CPU models from QEMU 2.1.0

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Don't test 486 and pentium with TCG

The CPUID test kernel uses CMOV, pentium and 486 don't have it enabled,
and the test kernel will crash. Skip those CPu models by now.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Try to test everything by default

Instead of skipping test cases when the QEMU version or host CPU is
unknown, try to test everything. Unavailable CPU models and
machine-types will generate a SKIP test result, anyway.

There are 473 qemu_cpu test cases, and most of them take around 3
seconds to run.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Ignore mismatching AMD alias bits if host has different CPU vendor

When using KVM the CPU vendor always matches the host, so when running
an Intel model on an AMD host or vice-versa, the CPUID alias bits on
0x80000001 will be different. Ignore them on those cases.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: Add rhel7 machine-types to dump scripts

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: Don't test TCG on RHEL-7

The -no-kvm option is not present on -help on RHEL-7, so virt-test won't
use it (meaning disable_kvm is broken).

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: Create a variant grouping all rhel6 machine-types

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: Create variants for rhel7.0.0 machine-types

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: Don't test qemu64 with rhel6 machine-types on RHEL7 or unknown hosts

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: Ignore CPUID[0x40000000].EAX on RHEL machine-types, too

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
cpuid: CPUID dumps from RHEL-7.0 collected on an AMD host

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: CPUID dumps from RHEL-7.0 collected on an Intel host

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
cpuid: Clarify the reason we can't test 486 and pentium with TCG

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