render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
bcddb9
From 9195e10f017bd06435f8eb0c78f2eecf34391531 Mon Sep 17 00:00:00 2001
bcddb9
Message-Id: <9195e10f017bd06435f8eb0c78f2eecf34391531@dist-git>
bcddb9
From: Jiri Denemark <jdenemar@redhat.com>
bcddb9
Date: Mon, 4 Mar 2019 16:45:48 +0100
bcddb9
Subject: [PATCH] cputest: Add data for Intel(R) Core(TM) i7-8700
bcddb9
MIME-Version: 1.0
bcddb9
Content-Type: text/plain; charset=UTF-8
bcddb9
Content-Transfer-Encoding: 8bit
bcddb9
bcddb9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
bcddb9
Reviewed-by: Ján Tomko <jtomko@redhat.com>
bcddb9
(cherry picked from commit 87a46f5d8f8b67b22eab8b25cd30a6b9901d6857)
bcddb9
bcddb9
https://bugzilla.redhat.com/show_bug.cgi?id=1558558
bcddb9
https://bugzilla.redhat.com/show_bug.cgi?id=1687515
bcddb9
bcddb9
Conflicts:
bcddb9
    tests/cputestdata/x86_64-cpuid-Core-i7-8700-guest.xml
bcddb9
    tests/cputestdata/x86_64-cpuid-Core-i7-8700-host.xml
bcddb9
    tests/cputestdata/x86_64-cpuid-Core-i7-8700-json.xml
bcddb9
        - intel-pt and umip features do not exist in RHEL-7.6
bcddb9
bcddb9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
bcddb9
Reviewed-by: Ján Tomko <jtomko@redhat.com>
bcddb9
---
bcddb9
 tests/cputest.c                               |   1 +
bcddb9
 .../x86_64-cpuid-Core-i7-8700-disabled.xml    |   6 +
bcddb9
 .../x86_64-cpuid-Core-i7-8700-enabled.xml     |   8 +
bcddb9
 .../x86_64-cpuid-Core-i7-8700-guest.xml       |  27 +
bcddb9
 .../x86_64-cpuid-Core-i7-8700-host.xml        |  28 +
bcddb9
 .../x86_64-cpuid-Core-i7-8700-json.xml        |  11 +
bcddb9
 .../x86_64-cpuid-Core-i7-8700.json            | 650 ++++++++++++++++++
bcddb9
 .../cputestdata/x86_64-cpuid-Core-i7-8700.xml |  47 ++
bcddb9
 8 files changed, 778 insertions(+)
bcddb9
 create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-8700-disabled.xml
bcddb9
 create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-8700-enabled.xml
bcddb9
 create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-8700-guest.xml
bcddb9
 create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-8700-host.xml
bcddb9
 create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-8700-json.xml
bcddb9
 create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-8700.json
bcddb9
 create mode 100644 tests/cputestdata/x86_64-cpuid-Core-i7-8700.xml
bcddb9
bcddb9
diff --git a/tests/cputest.c b/tests/cputest.c
bcddb9
index 5ca8d77974..74f84fab6c 100644
bcddb9
--- a/tests/cputest.c
bcddb9
+++ b/tests/cputest.c
bcddb9
@@ -1178,6 +1178,7 @@ mymain(void)
bcddb9
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Core-i7-5600U-ibrs", JSON_HOST);
bcddb9
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Core-i7-7600U", JSON_MODELS);
bcddb9
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Core-i7-7700", JSON_MODELS);
bcddb9
+    DO_TEST_CPUID(VIR_ARCH_X86_64, "Core-i7-8700", JSON_MODELS);
bcddb9
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Core2-E6850", JSON_HOST);
bcddb9
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Core2-Q9500", JSON_NONE);
bcddb9
     DO_TEST_CPUID(VIR_ARCH_X86_64, "EPYC-7601-32-Core", JSON_HOST);
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8700-disabled.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-disabled.xml
bcddb9
new file mode 100644
bcddb9
index 0000000000..6a7de576f1
bcddb9
--- /dev/null
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-disabled.xml
bcddb9
@@ -0,0 +1,6 @@
bcddb9
+
bcddb9
+<cpudata arch='x86'>
bcddb9
+  <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0800c1fc' edx='0xb0600000'/>
bcddb9
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x02000000' ecx='0x00000000' edx='0x08000000'/>
bcddb9
+  <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
bcddb9
+</cpudata>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8700-enabled.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-enabled.xml
bcddb9
new file mode 100644
bcddb9
index 0000000000..f0727d497b
bcddb9
--- /dev/null
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-enabled.xml
bcddb9
@@ -0,0 +1,8 @@
bcddb9
+
bcddb9
+<cpudata arch='x86'>
bcddb9
+  <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0xf7fa3203' edx='0x0f8bfbff'/>
bcddb9
+  <cpuid eax_in='0x00000006' ecx_in='0x00' eax='0x00000004' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x009c4fbb' ecx='0x00000004' edx='0x84000000'/>
bcddb9
+  <cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x0000000f' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
bcddb9
+</cpudata>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8700-guest.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-guest.xml
bcddb9
new file mode 100644
bcddb9
index 0000000000..141c01c841
bcddb9
--- /dev/null
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-guest.xml
bcddb9
@@ -0,0 +1,27 @@
bcddb9
+<cpu mode='custom' match='exact'>
bcddb9
+  <model fallback='forbid'>Skylake-Client-IBRS</model>
bcddb9
+  <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='ds'/>
bcddb9
+  <feature policy='require' name='acpi'/>
bcddb9
+  <feature policy='require' name='ss'/>
bcddb9
+  <feature policy='require' name='ht'/>
bcddb9
+  <feature policy='require' name='tm'/>
bcddb9
+  <feature policy='require' name='pbe'/>
bcddb9
+  <feature policy='require' name='dtes64'/>
bcddb9
+  <feature policy='require' name='monitor'/>
bcddb9
+  <feature policy='require' name='ds_cpl'/>
bcddb9
+  <feature policy='require' name='vmx'/>
bcddb9
+  <feature policy='require' name='smx'/>
bcddb9
+  <feature policy='require' name='est'/>
bcddb9
+  <feature policy='require' name='tm2'/>
bcddb9
+  <feature policy='require' name='xtpr'/>
bcddb9
+  <feature policy='require' name='pdcm'/>
bcddb9
+  <feature policy='require' name='osxsave'/>
bcddb9
+  <feature policy='require' name='tsc_adjust'/>
bcddb9
+  <feature policy='require' name='clflushopt'/>
bcddb9
+  <feature policy='require' name='stibp'/>
bcddb9
+  <feature policy='require' name='ssbd'/>
bcddb9
+  <feature policy='require' name='xsaves'/>
bcddb9
+  <feature policy='require' name='pdpe1gb'/>
bcddb9
+  <feature policy='require' name='invtsc'/>
bcddb9
+</cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8700-host.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-host.xml
bcddb9
new file mode 100644
bcddb9
index 0000000000..53bfc9728d
bcddb9
--- /dev/null
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-host.xml
bcddb9
@@ -0,0 +1,28 @@
bcddb9
+<cpu>
bcddb9
+  <arch>x86_64</arch>
bcddb9
+  <model>Skylake-Client-IBRS</model>
bcddb9
+  <vendor>Intel</vendor>
bcddb9
+  <feature name='ds'/>
bcddb9
+  <feature name='acpi'/>
bcddb9
+  <feature name='ss'/>
bcddb9
+  <feature name='ht'/>
bcddb9
+  <feature name='tm'/>
bcddb9
+  <feature name='pbe'/>
bcddb9
+  <feature name='dtes64'/>
bcddb9
+  <feature name='monitor'/>
bcddb9
+  <feature name='ds_cpl'/>
bcddb9
+  <feature name='vmx'/>
bcddb9
+  <feature name='smx'/>
bcddb9
+  <feature name='est'/>
bcddb9
+  <feature name='tm2'/>
bcddb9
+  <feature name='xtpr'/>
bcddb9
+  <feature name='pdcm'/>
bcddb9
+  <feature name='osxsave'/>
bcddb9
+  <feature name='tsc_adjust'/>
bcddb9
+  <feature name='clflushopt'/>
bcddb9
+  <feature name='stibp'/>
bcddb9
+  <feature name='ssbd'/>
bcddb9
+  <feature name='xsaves'/>
bcddb9
+  <feature name='pdpe1gb'/>
bcddb9
+  <feature name='invtsc'/>
bcddb9
+</cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8700-json.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-json.xml
bcddb9
new file mode 100644
bcddb9
index 0000000000..bf79d435a3
bcddb9
--- /dev/null
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8700-json.xml
bcddb9
@@ -0,0 +1,11 @@
bcddb9
+<cpu mode='custom' match='exact'>
bcddb9
+  <model fallback='forbid'>Skylake-Client-IBRS</model>
bcddb9
+  <vendor>Intel</vendor>
bcddb9
+  <feature policy='require' name='ss'/>
bcddb9
+  <feature policy='require' name='hypervisor'/>
bcddb9
+  <feature policy='require' name='tsc_adjust'/>
bcddb9
+  <feature policy='require' name='clflushopt'/>
bcddb9
+  <feature policy='require' name='ssbd'/>
bcddb9
+  <feature policy='require' name='xsaves'/>
bcddb9
+  <feature policy='require' name='pdpe1gb'/>
bcddb9
+</cpu>
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8700.json b/tests/cputestdata/x86_64-cpuid-Core-i7-8700.json
bcddb9
new file mode 100644
bcddb9
index 0000000000..122a1b2985
bcddb9
--- /dev/null
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8700.json
bcddb9
@@ -0,0 +1,650 @@
bcddb9
+{
bcddb9
+  "return": {
bcddb9
+    "model": {
bcddb9
+      "name": "base",
bcddb9
+      "props": {
bcddb9
+        "phys-bits": 0,
bcddb9
+        "core-id": -1,
bcddb9
+        "xlevel": 2147483656,
bcddb9
+        "cmov": true,
bcddb9
+        "ia64": false,
bcddb9
+        "aes": true,
bcddb9
+        "mmx": true,
bcddb9
+        "rdpid": false,
bcddb9
+        "arat": true,
bcddb9
+        "gfni": false,
bcddb9
+        "pause-filter": false,
bcddb9
+        "xsavec": true,
bcddb9
+        "intel-pt": false,
bcddb9
+        "osxsave": false,
bcddb9
+        "hv-frequencies": false,
bcddb9
+        "tsc-frequency": 0,
bcddb9
+        "xd": true,
bcddb9
+        "hv-vendor-id": "",
bcddb9
+        "kvm-asyncpf": true,
bcddb9
+        "kvm_asyncpf": true,
bcddb9
+        "perfctr_core": false,
bcddb9
+        "perfctr-core": false,
bcddb9
+        "mpx": true,
bcddb9
+        "pbe": false,
bcddb9
+        "decodeassists": false,
bcddb9
+        "avx512cd": false,
bcddb9
+        "sse4_1": true,
bcddb9
+        "sse4.1": true,
bcddb9
+        "sse4-1": true,
bcddb9
+        "family": 6,
bcddb9
+        "legacy-cache": true,
bcddb9
+        "vmware-cpuid-freq": true,
bcddb9
+        "avx512f": false,
bcddb9
+        "msr": true,
bcddb9
+        "mce": true,
bcddb9
+        "mca": true,
bcddb9
+        "hv-runtime": false,
bcddb9
+        "xcrypt": false,
bcddb9
+        "thread-id": -1,
bcddb9
+        "min-level": 13,
bcddb9
+        "xgetbv1": true,
bcddb9
+        "cid": false,
bcddb9
+        "hv-relaxed": false,
bcddb9
+        "hv-crash": false,
bcddb9
+        "ds": false,
bcddb9
+        "fxsr": true,
bcddb9
+        "xsaveopt": true,
bcddb9
+        "xtpr": false,
bcddb9
+        "avx512vl": false,
bcddb9
+        "avx512-vpopcntdq": false,
bcddb9
+        "phe": false,
bcddb9
+        "extapic": false,
bcddb9
+        "3dnowprefetch": true,
bcddb9
+        "avx512vbmi2": false,
bcddb9
+        "cr8legacy": false,
bcddb9
+        "cpuid-0xb": true,
bcddb9
+        "xcrypt-en": false,
bcddb9
+        "kvm_pv_eoi": true,
bcddb9
+        "apic-id": 4294967295,
bcddb9
+        "pn": false,
bcddb9
+        "dca": false,
bcddb9
+        "vendor": "GenuineIntel",
bcddb9
+        "pku": false,
bcddb9
+        "smx": false,
bcddb9
+        "cmp_legacy": false,
bcddb9
+        "cmp-legacy": false,
bcddb9
+        "node-id": -1,
bcddb9
+        "avx512-4fmaps": false,
bcddb9
+        "vmcb_clean": false,
bcddb9
+        "vmcb-clean": false,
bcddb9
+        "3dnowext": false,
bcddb9
+        "hle": true,
bcddb9
+        "npt": false,
bcddb9
+        "memory": "/machine/unattached/system[0]",
bcddb9
+        "clwb": false,
bcddb9
+        "lbrv": false,
bcddb9
+        "adx": true,
bcddb9
+        "ss": true,
bcddb9
+        "pni": true,
bcddb9
+        "svm_lock": false,
bcddb9
+        "svm-lock": false,
bcddb9
+        "pfthreshold": false,
bcddb9
+        "smep": true,
bcddb9
+        "smap": true,
bcddb9
+        "x2apic": true,
bcddb9
+        "avx512vbmi": false,
bcddb9
+        "avx512vnni": false,
bcddb9
+        "hv-stimer": false,
bcddb9
+        "i64": true,
bcddb9
+        "flushbyasid": false,
bcddb9
+        "f16c": true,
bcddb9
+        "ace2-en": false,
bcddb9
+        "pat": true,
bcddb9
+        "pae": true,
bcddb9
+        "sse": true,
bcddb9
+        "phe-en": false,
bcddb9
+        "kvm_nopiodelay": true,
bcddb9
+        "kvm-nopiodelay": true,
bcddb9
+        "tm": false,
bcddb9
+        "kvmclock-stable-bit": true,
bcddb9
+        "hypervisor": true,
bcddb9
+        "socket-id": -1,
bcddb9
+        "pcommit": false,
bcddb9
+        "syscall": true,
bcddb9
+        "level": 13,
bcddb9
+        "avx512dq": false,
bcddb9
+        "svm": false,
bcddb9
+        "full-cpuid-auto-level": true,
bcddb9
+        "hv-reset": false,
bcddb9
+        "invtsc": false,
bcddb9
+        "sse3": true,
bcddb9
+        "sse2": true,
bcddb9
+        "ssbd": true,
bcddb9
+        "est": false,
bcddb9
+        "avx512ifma": false,
bcddb9
+        "tm2": false,
bcddb9
+        "kvm-pv-eoi": true,
bcddb9
+        "cx8": true,
bcddb9
+        "kvm_mmu": false,
bcddb9
+        "kvm-mmu": false,
bcddb9
+        "sse4_2": true,
bcddb9
+        "sse4.2": true,
bcddb9
+        "sse4-2": true,
bcddb9
+        "pge": true,
bcddb9
+        "fill-mtrr-mask": true,
bcddb9
+        "avx512bitalg": false,
bcddb9
+        "nodeid_msr": false,
bcddb9
+        "pdcm": false,
bcddb9
+        "movbe": true,
bcddb9
+        "model": 158,
bcddb9
+        "nrip_save": false,
bcddb9
+        "nrip-save": false,
bcddb9
+        "kvm_pv_unhalt": true,
bcddb9
+        "ssse3": true,
bcddb9
+        "sse4a": false,
bcddb9
+        "invpcid": true,
bcddb9
+        "pdpe1gb": true,
bcddb9
+        "tsc-deadline": true,
bcddb9
+        "fma": true,
bcddb9
+        "cx16": true,
bcddb9
+        "de": true,
bcddb9
+        "enforce": false,
bcddb9
+        "stepping": 10,
bcddb9
+        "xsave": true,
bcddb9
+        "clflush": true,
bcddb9
+        "skinit": false,
bcddb9
+        "tsc": true,
bcddb9
+        "tce": false,
bcddb9
+        "fpu": true,
bcddb9
+        "ibs": false,
bcddb9
+        "ds_cpl": false,
bcddb9
+        "ds-cpl": false,
bcddb9
+        "host-phys-bits": true,
bcddb9
+        "fma4": false,
bcddb9
+        "la57": false,
bcddb9
+        "osvw": false,
bcddb9
+        "check": true,
bcddb9
+        "hv-spinlocks": -1,
bcddb9
+        "pmu": false,
bcddb9
+        "pmm": false,
bcddb9
+        "apic": true,
bcddb9
+        "spec-ctrl": true,
bcddb9
+        "min-xlevel2": 0,
bcddb9
+        "tsc-adjust": true,
bcddb9
+        "tsc_adjust": true,
bcddb9
+        "kvm-steal-time": true,
bcddb9
+        "kvm_steal_time": true,
bcddb9
+        "kvmclock": true,
bcddb9
+        "l3-cache": true,
bcddb9
+        "lwp": false,
bcddb9
+        "ibpb": false,
bcddb9
+        "xop": false,
bcddb9
+        "avx": true,
bcddb9
+        "ospke": false,
bcddb9
+        "ace2": false,
bcddb9
+        "avx512bw": false,
bcddb9
+        "acpi": false,
bcddb9
+        "hv-vapic": false,
bcddb9
+        "fsgsbase": true,
bcddb9
+        "ht": false,
bcddb9
+        "nx": true,
bcddb9
+        "pclmulqdq": true,
bcddb9
+        "mmxext": false,
bcddb9
+        "vaes": false,
bcddb9
+        "popcnt": true,
bcddb9
+        "xsaves": true,
bcddb9
+        "tcg-cpuid": true,
bcddb9
+        "lm": true,
bcddb9
+        "umip": true,
bcddb9
+        "pse": true,
bcddb9
+        "avx2": true,
bcddb9
+        "sep": true,
bcddb9
+        "pclmuldq": true,
bcddb9
+        "virt-ssbd": false,
bcddb9
+        "x-hv-max-vps": -1,
bcddb9
+        "nodeid-msr": false,
bcddb9
+        "kvm": true,
bcddb9
+        "misalignsse": false,
bcddb9
+        "min-xlevel": 2147483656,
bcddb9
+        "kvm-pv-unhalt": true,
bcddb9
+        "bmi2": true,
bcddb9
+        "bmi1": true,
bcddb9
+        "realized": false,
bcddb9
+        "tsc_scale": false,
bcddb9
+        "tsc-scale": false,
bcddb9
+        "topoext": false,
bcddb9
+        "hv-vpindex": false,
bcddb9
+        "xlevel2": 0,
bcddb9
+        "clflushopt": true,
bcddb9
+        "kvm-no-smi-migration": false,
bcddb9
+        "monitor": false,
bcddb9
+        "avx512er": false,
bcddb9
+        "pmm-en": false,
bcddb9
+        "pcid": true,
bcddb9
+        "3dnow": false,
bcddb9
+        "erms": true,
bcddb9
+        "lahf-lm": true,
bcddb9
+        "lahf_lm": true,
bcddb9
+        "vpclmulqdq": false,
bcddb9
+        "fxsr-opt": false,
bcddb9
+        "hv-synic": false,
bcddb9
+        "xstore": false,
bcddb9
+        "fxsr_opt": false,
bcddb9
+        "kvm-hint-dedicated": false,
bcddb9
+        "rtm": true,
bcddb9
+        "lmce": true,
bcddb9
+        "hv-time": false,
bcddb9
+        "perfctr-nb": false,
bcddb9
+        "perfctr_nb": false,
bcddb9
+        "ffxsr": false,
bcddb9
+        "rdrand": true,
bcddb9
+        "rdseed": true,
bcddb9
+        "avx512-4vnniw": false,
bcddb9
+        "vmx": false,
bcddb9
+        "vme": true,
bcddb9
+        "dtes64": false,
bcddb9
+        "mtrr": true,
bcddb9
+        "rdtscp": true,
bcddb9
+        "pse36": true,
bcddb9
+        "kvm-pv-tlb-flush": true,
bcddb9
+        "tbm": false,
bcddb9
+        "wdt": false,
bcddb9
+        "pause_filter": false,
bcddb9
+        "sha-ni": false,
bcddb9
+        "model-id": "Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz",
bcddb9
+        "abm": true,
bcddb9
+        "avx512pf": false,
bcddb9
+        "xstore-en": false
bcddb9
+      }
bcddb9
+    }
bcddb9
+  },
bcddb9
+  "id": "model-expansion"
bcddb9
+}
bcddb9
+
bcddb9
+{
bcddb9
+  "return": [
bcddb9
+    {
bcddb9
+      "name": "max",
bcddb9
+      "typename": "max-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": false
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "host",
bcddb9
+      "typename": "host-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": false
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "base",
bcddb9
+      "typename": "base-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": true,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "qemu64",
bcddb9
+      "typename": "qemu64-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "qemu32",
bcddb9
+      "typename": "qemu32-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "phenom",
bcddb9
+      "typename": "phenom-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "mmxext",
bcddb9
+        "fxsr-opt",
bcddb9
+        "3dnowext",
bcddb9
+        "3dnow",
bcddb9
+        "sse4a",
bcddb9
+        "npt"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "pentium3",
bcddb9
+      "typename": "pentium3-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "pentium2",
bcddb9
+      "typename": "pentium2-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "pentium",
bcddb9
+      "typename": "pentium-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "n270",
bcddb9
+      "typename": "n270-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "kvm64",
bcddb9
+      "typename": "kvm64-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "kvm32",
bcddb9
+      "typename": "kvm32-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "cpu64-rhel6",
bcddb9
+      "typename": "cpu64-rhel6-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "sse4a"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "coreduo",
bcddb9
+      "typename": "coreduo-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "core2duo",
bcddb9
+      "typename": "core2duo-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "athlon",
bcddb9
+      "typename": "athlon-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "mmxext",
bcddb9
+        "3dnowext",
bcddb9
+        "3dnow"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Westmere",
bcddb9
+      "typename": "Westmere-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Westmere-IBRS",
bcddb9
+      "typename": "Westmere-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Skylake-Server",
bcddb9
+      "typename": "Skylake-Server-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "avx512f",
bcddb9
+        "avx512dq",
bcddb9
+        "clwb",
bcddb9
+        "avx512cd",
bcddb9
+        "avx512bw",
bcddb9
+        "avx512vl",
bcddb9
+        "avx512f",
bcddb9
+        "avx512f",
bcddb9
+        "avx512f"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Skylake-Server-IBRS",
bcddb9
+      "typename": "Skylake-Server-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "avx512f",
bcddb9
+        "avx512dq",
bcddb9
+        "clwb",
bcddb9
+        "avx512cd",
bcddb9
+        "avx512bw",
bcddb9
+        "avx512vl",
bcddb9
+        "avx512f",
bcddb9
+        "avx512f",
bcddb9
+        "avx512f"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Skylake-Client",
bcddb9
+      "typename": "Skylake-Client-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Skylake-Client-IBRS",
bcddb9
+      "typename": "Skylake-Client-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "SandyBridge",
bcddb9
+      "typename": "SandyBridge-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "SandyBridge-IBRS",
bcddb9
+      "typename": "SandyBridge-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Penryn",
bcddb9
+      "typename": "Penryn-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Opteron_G5",
bcddb9
+      "typename": "Opteron_G5-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "sse4a",
bcddb9
+        "misalignsse",
bcddb9
+        "xop",
bcddb9
+        "fma4",
bcddb9
+        "tbm"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Opteron_G4",
bcddb9
+      "typename": "Opteron_G4-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "sse4a",
bcddb9
+        "misalignsse",
bcddb9
+        "xop",
bcddb9
+        "fma4"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Opteron_G3",
bcddb9
+      "typename": "Opteron_G3-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "sse4a",
bcddb9
+        "misalignsse"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Opteron_G2",
bcddb9
+      "typename": "Opteron_G2-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Opteron_G1",
bcddb9
+      "typename": "Opteron_G1-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Nehalem",
bcddb9
+      "typename": "Nehalem-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Nehalem-IBRS",
bcddb9
+      "typename": "Nehalem-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "IvyBridge",
bcddb9
+      "typename": "IvyBridge-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "IvyBridge-IBRS",
bcddb9
+      "typename": "IvyBridge-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Haswell",
bcddb9
+      "typename": "Haswell-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Haswell-noTSX",
bcddb9
+      "typename": "Haswell-noTSX-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Haswell-noTSX-IBRS",
bcddb9
+      "typename": "Haswell-noTSX-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Haswell-IBRS",
bcddb9
+      "typename": "Haswell-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "EPYC",
bcddb9
+      "typename": "EPYC-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "sha-ni",
bcddb9
+        "mmxext",
bcddb9
+        "fxsr-opt",
bcddb9
+        "cr8legacy",
bcddb9
+        "sse4a",
bcddb9
+        "misalignsse",
bcddb9
+        "osvw"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "EPYC-IBPB",
bcddb9
+      "typename": "EPYC-IBPB-x86_64-cpu",
bcddb9
+      "unavailable-features": [
bcddb9
+        "sha-ni",
bcddb9
+        "mmxext",
bcddb9
+        "fxsr-opt",
bcddb9
+        "cr8legacy",
bcddb9
+        "sse4a",
bcddb9
+        "misalignsse",
bcddb9
+        "osvw",
bcddb9
+        "ibpb"
bcddb9
+      ],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Conroe",
bcddb9
+      "typename": "Conroe-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Broadwell",
bcddb9
+      "typename": "Broadwell-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Broadwell-noTSX",
bcddb9
+      "typename": "Broadwell-noTSX-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Broadwell-noTSX-IBRS",
bcddb9
+      "typename": "Broadwell-noTSX-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "Broadwell-IBRS",
bcddb9
+      "typename": "Broadwell-IBRS-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    },
bcddb9
+    {
bcddb9
+      "name": "486",
bcddb9
+      "typename": "486-x86_64-cpu",
bcddb9
+      "unavailable-features": [],
bcddb9
+      "static": false,
bcddb9
+      "migration-safe": true
bcddb9
+    }
bcddb9
+  ],
bcddb9
+  "id": "definitions"
bcddb9
+}
bcddb9
diff --git a/tests/cputestdata/x86_64-cpuid-Core-i7-8700.xml b/tests/cputestdata/x86_64-cpuid-Core-i7-8700.xml
bcddb9
new file mode 100644
bcddb9
index 0000000000..03ba0a3925
bcddb9
--- /dev/null
bcddb9
+++ b/tests/cputestdata/x86_64-cpuid-Core-i7-8700.xml
bcddb9
@@ -0,0 +1,47 @@
bcddb9
+
bcddb9
+<cpudata arch='x86'>
bcddb9
+  <cpuid eax_in='0x00000000' ecx_in='0x00' eax='0x00000016' ebx='0x756e6547' ecx='0x6c65746e' edx='0x49656e69'/>
bcddb9
+  <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x000906ea' ebx='0x01100800' ecx='0x7ffafbff' edx='0xbfebfbff'/>
bcddb9
+  <cpuid eax_in='0x00000002' ecx_in='0x00' eax='0x76036301' ebx='0x00f0b5ff' ecx='0x00000000' edx='0x00c30000'/>
bcddb9
+  <cpuid eax_in='0x00000003' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000004' ecx_in='0x00' eax='0x1c004121' ebx='0x01c0003f' ecx='0x0000003f' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000004' ecx_in='0x01' eax='0x1c004122' ebx='0x01c0003f' ecx='0x0000003f' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000004' ecx_in='0x02' eax='0x1c004143' ebx='0x00c0003f' ecx='0x000003ff' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000004' ecx_in='0x03' eax='0x1c03c163' ebx='0x03c0003f' ecx='0x00002fff' edx='0x00000006'/>
bcddb9
+  <cpuid eax_in='0x00000005' ecx_in='0x00' eax='0x00000040' ebx='0x00000040' ecx='0x00000003' edx='0x11142120'/>
bcddb9
+  <cpuid eax_in='0x00000006' ecx_in='0x00' eax='0x000027f7' ebx='0x00000002' ecx='0x00000001' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x029c6fbf' ecx='0x40000000' edx='0x9c000000'/>
bcddb9
+  <cpuid eax_in='0x00000008' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000009' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000a' ecx_in='0x00' eax='0x07300404' ebx='0x00000000' ecx='0x00000000' edx='0x00000603'/>
bcddb9
+  <cpuid eax_in='0x0000000b' ecx_in='0x00' eax='0x00000001' ebx='0x00000002' ecx='0x00000100' edx='0x00000001'/>
bcddb9
+  <cpuid eax_in='0x0000000b' ecx_in='0x01' eax='0x00000004' ebx='0x0000000c' ecx='0x00000201' edx='0x00000001'/>
bcddb9
+  <cpuid eax_in='0x0000000c' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000d' ecx_in='0x00' eax='0x0000001f' ebx='0x00000440' ecx='0x00000440' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x0000000f' ebx='0x000003c0' ecx='0x00000100' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000d' ecx_in='0x02' eax='0x00000100' ebx='0x00000240' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000d' ecx_in='0x03' eax='0x00000040' ebx='0x000003c0' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000d' ecx_in='0x04' eax='0x00000040' ebx='0x00000400' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000d' ecx_in='0x08' eax='0x00000080' ebx='0x00000000' ecx='0x00000001' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000e' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x0000000f' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000010' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000011' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000012' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000013' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000014' ecx_in='0x00' eax='0x00000001' ebx='0x0000000f' ecx='0x00000007' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000014' ecx_in='0x01' eax='0x02490002' ebx='0x003f3fff' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000015' ecx_in='0x00' eax='0x00000002' ebx='0x0000010a' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x00000016' ecx_in='0x00' eax='0x00000c80' ebx='0x000011f8' ecx='0x00000064' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x80000000' ecx_in='0x00' eax='0x80000008' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
bcddb9
+  <cpuid eax_in='0x80000002' ecx_in='0x00' eax='0x65746e49' ebx='0x2952286c' ecx='0x726f4320' edx='0x4d542865'/>
bcddb9
+  <cpuid eax_in='0x80000003' ecx_in='0x00' eax='0x37692029' ebx='0x3037382d' ecx='0x50432030' edx='0x20402055'/>
bcddb9
+  <cpuid eax_in='0x80000004' ecx_in='0x00' eax='0x30322e33' ebx='0x007a4847' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x80000005' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x80000006' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x01006040' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
bcddb9
+  <cpuid eax_in='0x80000008' ecx_in='0x00' eax='0x00003027' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0x80860000' ecx_in='0x00' eax='0x00000c80' ebx='0x000011f8' ecx='0x00000064' edx='0x00000000'/>
bcddb9
+  <cpuid eax_in='0xc0000000' ecx_in='0x00' eax='0x00000c80' ebx='0x000011f8' ecx='0x00000064' edx='0x00000000'/>
bcddb9
+</cpudata>
bcddb9
-- 
bcddb9
2.21.0
bcddb9