render / rpms / libvirt

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