99cbc7
From 2b9e257012ac32127e3269722a02d2ad7ff83cd4 Mon Sep 17 00:00:00 2001
99cbc7
Message-Id: <2b9e257012ac32127e3269722a02d2ad7ff83cd4@dist-git>
99cbc7
From: Jiri Denemark <jdenemar@redhat.com>
99cbc7
Date: Thu, 21 Feb 2019 21:51:58 +0100
99cbc7
Subject: [PATCH] cputest: Add data for Intel(R) Xeon(R) CPU E5-2630 v4
99cbc7
MIME-Version: 1.0
99cbc7
Content-Type: text/plain; charset=UTF-8
99cbc7
Content-Transfer-Encoding: 8bit
99cbc7
99cbc7
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
99cbc7
Reviewed-by: Ján Tomko <jtomko@redhat.com>
99cbc7
(cherry picked from commit 8d068f360183ecd55e3213dbe9ba12f7d6470751)
99cbc7
99cbc7
https://bugzilla.redhat.com/show_bug.cgi?id=1558558
99cbc7
https://bugzilla.redhat.com/show_bug.cgi?id=1687515
99cbc7
99cbc7
Conflicts:
99cbc7
    tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml
99cbc7
    tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-host.xml
99cbc7
        - intel-pt feature does not exist in RHEL-7.6
99cbc7
99cbc7
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
99cbc7
Reviewed-by: Ján Tomko <jtomko@redhat.com>
99cbc7
---
99cbc7
 tests/cputest.c                               |   1 +
99cbc7
 .../x86_64-cpuid-Xeon-E5-2630-v4-disabled.xml |   7 +
99cbc7
 .../x86_64-cpuid-Xeon-E5-2630-v4-enabled.xml  |   8 +
99cbc7
 .../x86_64-cpuid-Xeon-E5-2630-v4-guest.xml    |  30 +
99cbc7
 .../x86_64-cpuid-Xeon-E5-2630-v4-host.xml     |  34 +
99cbc7
 .../x86_64-cpuid-Xeon-E5-2630-v4-json.xml     |  11 +
99cbc7
 .../x86_64-cpuid-Xeon-E5-2630-v4.json         | 596 ++++++++++++++++++
99cbc7
 .../x86_64-cpuid-Xeon-E5-2630-v4.xml          |  43 ++
99cbc7
 8 files changed, 730 insertions(+)
99cbc7
 create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-disabled.xml
99cbc7
 create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-enabled.xml
99cbc7
 create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml
99cbc7
 create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-host.xml
99cbc7
 create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml
99cbc7
 create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.json
99cbc7
 create mode 100644 tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.xml
99cbc7
99cbc7
diff --git a/tests/cputest.c b/tests/cputest.c
99cbc7
index baf2b3c648..8bb801859e 100644
99cbc7
--- a/tests/cputest.c
99cbc7
+++ b/tests/cputest.c
99cbc7
@@ -1194,6 +1194,7 @@ mymain(void)
99cbc7
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E5-2609-v3", JSON_MODELS);
99cbc7
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E5-2623-v4", JSON_MODELS);
99cbc7
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E5-2630-v3", JSON_HOST);
99cbc7
+    DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E5-2630-v4", JSON_MODELS);
99cbc7
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E5-2650-v3", JSON_HOST);
99cbc7
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E5-2650-v4", JSON_MODELS);
99cbc7
     DO_TEST_CPUID(VIR_ARCH_X86_64, "Xeon-E7-4820", JSON_HOST);
99cbc7
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-disabled.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-disabled.xml
99cbc7
new file mode 100644
99cbc7
index 0000000000..3ffb246167
99cbc7
--- /dev/null
99cbc7
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-disabled.xml
99cbc7
@@ -0,0 +1,7 @@
99cbc7
+
99cbc7
+<cpudata arch='x86'>
99cbc7
+  <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x0804c1fc' edx='0xb0600000'/>
99cbc7
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x02001000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000f' ecx_in='0x01' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000006'/>
99cbc7
+  <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
99cbc7
+</cpudata>
99cbc7
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-enabled.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-enabled.xml
99cbc7
new file mode 100644
99cbc7
index 0000000000..f2d4f2826d
99cbc7
--- /dev/null
99cbc7
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-enabled.xml
99cbc7
@@ -0,0 +1,8 @@
99cbc7
+
99cbc7
+<cpudata arch='x86'>
99cbc7
+  <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0xf7fa3203' edx='0x0f8bfbff'/>
99cbc7
+  <cpuid eax_in='0x00000006' ecx_in='0x00' eax='0x00000004' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x001c0fbb' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x00000001' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
99cbc7
+</cpudata>
99cbc7
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml
99cbc7
new file mode 100644
99cbc7
index 0000000000..2fac54355c
99cbc7
--- /dev/null
99cbc7
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-guest.xml
99cbc7
@@ -0,0 +1,30 @@
99cbc7
+<cpu mode='custom' match='exact'>
99cbc7
+  <model fallback='forbid'>Skylake-Client</model>
99cbc7
+  <vendor>Intel</vendor>
99cbc7
+  <feature policy='require' name='ds'/>
99cbc7
+  <feature policy='require' name='acpi'/>
99cbc7
+  <feature policy='require' name='ss'/>
99cbc7
+  <feature policy='require' name='ht'/>
99cbc7
+  <feature policy='require' name='tm'/>
99cbc7
+  <feature policy='require' name='pbe'/>
99cbc7
+  <feature policy='require' name='dtes64'/>
99cbc7
+  <feature policy='require' name='monitor'/>
99cbc7
+  <feature policy='require' name='ds_cpl'/>
99cbc7
+  <feature policy='require' name='vmx'/>
99cbc7
+  <feature policy='require' name='smx'/>
99cbc7
+  <feature policy='require' name='est'/>
99cbc7
+  <feature policy='require' name='tm2'/>
99cbc7
+  <feature policy='require' name='xtpr'/>
99cbc7
+  <feature policy='require' name='pdcm'/>
99cbc7
+  <feature policy='require' name='dca'/>
99cbc7
+  <feature policy='require' name='osxsave'/>
99cbc7
+  <feature policy='require' name='tsc_adjust'/>
99cbc7
+  <feature policy='require' name='cmt'/>
99cbc7
+  <feature policy='require' name='mbm_total'/>
99cbc7
+  <feature policy='require' name='mbm_local'/>
99cbc7
+  <feature policy='require' name='pdpe1gb'/>
99cbc7
+  <feature policy='require' name='invtsc'/>
99cbc7
+  <feature policy='disable' name='mpx'/>
99cbc7
+  <feature policy='disable' name='xsavec'/>
99cbc7
+  <feature policy='disable' name='xgetbv1'/>
99cbc7
+</cpu>
99cbc7
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-host.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-host.xml
99cbc7
new file mode 100644
99cbc7
index 0000000000..f482864a98
99cbc7
--- /dev/null
99cbc7
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-host.xml
99cbc7
@@ -0,0 +1,34 @@
99cbc7
+<cpu>
99cbc7
+  <arch>x86_64</arch>
99cbc7
+  <model>Broadwell</model>
99cbc7
+  <vendor>Intel</vendor>
99cbc7
+  <feature name='vme'/>
99cbc7
+  <feature name='ds'/>
99cbc7
+  <feature name='acpi'/>
99cbc7
+  <feature name='ss'/>
99cbc7
+  <feature name='ht'/>
99cbc7
+  <feature name='tm'/>
99cbc7
+  <feature name='pbe'/>
99cbc7
+  <feature name='dtes64'/>
99cbc7
+  <feature name='monitor'/>
99cbc7
+  <feature name='ds_cpl'/>
99cbc7
+  <feature name='vmx'/>
99cbc7
+  <feature name='smx'/>
99cbc7
+  <feature name='est'/>
99cbc7
+  <feature name='tm2'/>
99cbc7
+  <feature name='xtpr'/>
99cbc7
+  <feature name='pdcm'/>
99cbc7
+  <feature name='dca'/>
99cbc7
+  <feature name='osxsave'/>
99cbc7
+  <feature name='f16c'/>
99cbc7
+  <feature name='rdrand'/>
99cbc7
+  <feature name='arat'/>
99cbc7
+  <feature name='tsc_adjust'/>
99cbc7
+  <feature name='cmt'/>
99cbc7
+  <feature name='xsaveopt'/>
99cbc7
+  <feature name='mbm_total'/>
99cbc7
+  <feature name='mbm_local'/>
99cbc7
+  <feature name='pdpe1gb'/>
99cbc7
+  <feature name='abm'/>
99cbc7
+  <feature name='invtsc'/>
99cbc7
+</cpu>
99cbc7
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml
99cbc7
new file mode 100644
99cbc7
index 0000000000..5dfce947b2
99cbc7
--- /dev/null
99cbc7
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4-json.xml
99cbc7
@@ -0,0 +1,11 @@
99cbc7
+<cpu mode='custom' match='exact'>
99cbc7
+  <model fallback='forbid'>Skylake-Client</model>
99cbc7
+  <vendor>Intel</vendor>
99cbc7
+  <feature policy='require' name='ss'/>
99cbc7
+  <feature policy='require' name='hypervisor'/>
99cbc7
+  <feature policy='require' name='tsc_adjust'/>
99cbc7
+  <feature policy='require' name='pdpe1gb'/>
99cbc7
+  <feature policy='disable' name='mpx'/>
99cbc7
+  <feature policy='disable' name='xsavec'/>
99cbc7
+  <feature policy='disable' name='xgetbv1'/>
99cbc7
+</cpu>
99cbc7
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.json b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.json
99cbc7
new file mode 100644
99cbc7
index 0000000000..ee09950fce
99cbc7
--- /dev/null
99cbc7
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.json
99cbc7
@@ -0,0 +1,596 @@
99cbc7
+{
99cbc7
+  "return": {
99cbc7
+    "model": {
99cbc7
+      "name": "base",
99cbc7
+      "props": {
99cbc7
+        "phys-bits": 0,
99cbc7
+        "core-id": -1,
99cbc7
+        "xlevel": 2147483656,
99cbc7
+        "cmov": true,
99cbc7
+        "ia64": false,
99cbc7
+        "aes": true,
99cbc7
+        "mmx": true,
99cbc7
+        "arat": true,
99cbc7
+        "rdpid": false,
99cbc7
+        "pause-filter": false,
99cbc7
+        "xsavec": false,
99cbc7
+        "osxsave": false,
99cbc7
+        "tsc-frequency": 0,
99cbc7
+        "xd": true,
99cbc7
+        "hv-vendor-id": "",
99cbc7
+        "kvm-asyncpf": true,
99cbc7
+        "kvm_asyncpf": true,
99cbc7
+        "perfctr_core": false,
99cbc7
+        "perfctr-core": false,
99cbc7
+        "mpx": false,
99cbc7
+        "decodeassists": false,
99cbc7
+        "avx512cd": false,
99cbc7
+        "pbe": false,
99cbc7
+        "sse4_1": true,
99cbc7
+        "sse4.1": true,
99cbc7
+        "sse4-1": true,
99cbc7
+        "family": 6,
99cbc7
+        "vmware-cpuid-freq": true,
99cbc7
+        "avx512f": false,
99cbc7
+        "xcrypt": false,
99cbc7
+        "msr": true,
99cbc7
+        "mce": true,
99cbc7
+        "mca": true,
99cbc7
+        "thread-id": -1,
99cbc7
+        "min-level": 13,
99cbc7
+        "xgetbv1": false,
99cbc7
+        "cid": false,
99cbc7
+        "hv-relaxed": false,
99cbc7
+        "fxsr": true,
99cbc7
+        "ds": false,
99cbc7
+        "hv-crash": false,
99cbc7
+        "xsaveopt": true,
99cbc7
+        "xtpr": false,
99cbc7
+        "avx512-vpopcntdq": false,
99cbc7
+        "phe": false,
99cbc7
+        "avx512vl": false,
99cbc7
+        "extapic": false,
99cbc7
+        "3dnowprefetch": true,
99cbc7
+        "cr8legacy": false,
99cbc7
+        "stibp": false,
99cbc7
+        "cpuid-0xb": true,
99cbc7
+        "xcrypt-en": false,
99cbc7
+        "kvm_pv_eoi": true,
99cbc7
+        "apic-id": 4294967295,
99cbc7
+        "pn": false,
99cbc7
+        "dca": false,
99cbc7
+        "vendor": "GenuineIntel",
99cbc7
+        "pku": false,
99cbc7
+        "smx": false,
99cbc7
+        "cmp-legacy": false,
99cbc7
+        "cmp_legacy": false,
99cbc7
+        "avx512-4fmaps": false,
99cbc7
+        "vmcb-clean": false,
99cbc7
+        "vmcb_clean": false,
99cbc7
+        "3dnowext": false,
99cbc7
+        "hle": true,
99cbc7
+        "npt": false,
99cbc7
+        "memory": "/machine/unattached/system[0]",
99cbc7
+        "clwb": false,
99cbc7
+        "lbrv": false,
99cbc7
+        "adx": true,
99cbc7
+        "ss": true,
99cbc7
+        "pni": true,
99cbc7
+        "svm_lock": false,
99cbc7
+        "svm-lock": false,
99cbc7
+        "smep": true,
99cbc7
+        "pfthreshold": false,
99cbc7
+        "smap": true,
99cbc7
+        "x2apic": true,
99cbc7
+        "avx512vbmi": false,
99cbc7
+        "i64": true,
99cbc7
+        "flushbyasid": false,
99cbc7
+        "f16c": true,
99cbc7
+        "ace2-en": false,
99cbc7
+        "pat": true,
99cbc7
+        "pae": true,
99cbc7
+        "sse": true,
99cbc7
+        "phe-en": false,
99cbc7
+        "kvm-nopiodelay": true,
99cbc7
+        "kvm_nopiodelay": true,
99cbc7
+        "tm": false,
99cbc7
+        "kvmclock-stable-bit": true,
99cbc7
+        "hypervisor": true,
99cbc7
+        "socket-id": -1,
99cbc7
+        "pcommit": false,
99cbc7
+        "syscall": true,
99cbc7
+        "level": 13,
99cbc7
+        "avx512dq": false,
99cbc7
+        "svm": false,
99cbc7
+        "full-cpuid-auto-level": true,
99cbc7
+        "invtsc": false,
99cbc7
+        "sse3": true,
99cbc7
+        "sse2": true,
99cbc7
+        "est": false,
99cbc7
+        "avx512ifma": false,
99cbc7
+        "tm2": false,
99cbc7
+        "kvm-pv-eoi": true,
99cbc7
+        "cx8": true,
99cbc7
+        "kvm-mmu": false,
99cbc7
+        "kvm_mmu": false,
99cbc7
+        "sse4_2": true,
99cbc7
+        "sse4.2": true,
99cbc7
+        "sse4-2": true,
99cbc7
+        "pge": true,
99cbc7
+        "fill-mtrr-mask": true,
99cbc7
+        "pdcm": false,
99cbc7
+        "nodeid_msr": false,
99cbc7
+        "model": 79,
99cbc7
+        "movbe": true,
99cbc7
+        "nrip-save": false,
99cbc7
+        "nrip_save": false,
99cbc7
+        "sse4a": false,
99cbc7
+        "ssse3": true,
99cbc7
+        "kvm_pv_unhalt": true,
99cbc7
+        "invpcid": true,
99cbc7
+        "pdpe1gb": true,
99cbc7
+        "tsc-deadline": true,
99cbc7
+        "fma": true,
99cbc7
+        "cx16": true,
99cbc7
+        "de": true,
99cbc7
+        "enforce": false,
99cbc7
+        "stepping": 1,
99cbc7
+        "xsave": true,
99cbc7
+        "clflush": true,
99cbc7
+        "arch-facilities": false,
99cbc7
+        "skinit": false,
99cbc7
+        "tce": false,
99cbc7
+        "tsc": true,
99cbc7
+        "fpu": true,
99cbc7
+        "ds-cpl": false,
99cbc7
+        "ds_cpl": false,
99cbc7
+        "ibs": false,
99cbc7
+        "host-phys-bits": true,
99cbc7
+        "fma4": false,
99cbc7
+        "la57": false,
99cbc7
+        "osvw": false,
99cbc7
+        "check": true,
99cbc7
+        "hv-spinlocks": -1,
99cbc7
+        "pmm": false,
99cbc7
+        "apic": true,
99cbc7
+        "pmu": false,
99cbc7
+        "spec-ctrl": false,
99cbc7
+        "min-xlevel2": 0,
99cbc7
+        "tsc-adjust": true,
99cbc7
+        "tsc_adjust": true,
99cbc7
+        "kvm-steal-time": true,
99cbc7
+        "kvm_steal_time": true,
99cbc7
+        "kvmclock": true,
99cbc7
+        "l3-cache": true,
99cbc7
+        "lwp": false,
99cbc7
+        "xop": false,
99cbc7
+        "ibpb": false,
99cbc7
+        "avx": true,
99cbc7
+        "ospke": false,
99cbc7
+        "ace2": false,
99cbc7
+        "acpi": false,
99cbc7
+        "avx512bw": false,
99cbc7
+        "hv-vapic": false,
99cbc7
+        "fsgsbase": true,
99cbc7
+        "ht": false,
99cbc7
+        "nx": true,
99cbc7
+        "pclmulqdq": true,
99cbc7
+        "mmxext": false,
99cbc7
+        "popcnt": true,
99cbc7
+        "xsaves": false,
99cbc7
+        "lm": true,
99cbc7
+        "umip": false,
99cbc7
+        "avx2": true,
99cbc7
+        "pse": true,
99cbc7
+        "sep": true,
99cbc7
+        "pclmuldq": true,
99cbc7
+        "nodeid-msr": false,
99cbc7
+        "kvm": true,
99cbc7
+        "misalignsse": false,
99cbc7
+        "min-xlevel": 2147483656,
99cbc7
+        "bmi2": true,
99cbc7
+        "bmi1": true,
99cbc7
+        "kvm-pv-unhalt": true,
99cbc7
+        "realized": false,
99cbc7
+        "tsc-scale": false,
99cbc7
+        "tsc_scale": false,
99cbc7
+        "topoext": false,
99cbc7
+        "xlevel2": 0,
99cbc7
+        "clflushopt": false,
99cbc7
+        "kvm-no-smi-migration": false,
99cbc7
+        "monitor": false,
99cbc7
+        "avx512er": false,
99cbc7
+        "pmm-en": false,
99cbc7
+        "pcid": true,
99cbc7
+        "3dnow": false,
99cbc7
+        "erms": true,
99cbc7
+        "lahf-lm": true,
99cbc7
+        "lahf_lm": true,
99cbc7
+        "xstore": false,
99cbc7
+        "fxsr-opt": false,
99cbc7
+        "fxsr_opt": false,
99cbc7
+        "rtm": true,
99cbc7
+        "lmce": true,
99cbc7
+        "hv-time": false,
99cbc7
+        "perfctr-nb": false,
99cbc7
+        "perfctr_nb": false,
99cbc7
+        "ffxsr": false,
99cbc7
+        "rdrand": true,
99cbc7
+        "rdseed": true,
99cbc7
+        "avx512-4vnniw": false,
99cbc7
+        "vme": true,
99cbc7
+        "vmx": false,
99cbc7
+        "dtes64": false,
99cbc7
+        "mtrr": true,
99cbc7
+        "rdtscp": true,
99cbc7
+        "pse36": true,
99cbc7
+        "tbm": false,
99cbc7
+        "wdt": false,
99cbc7
+        "pause_filter": false,
99cbc7
+        "model-id": "Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz",
99cbc7
+        "sha-ni": false,
99cbc7
+        "abm": true,
99cbc7
+        "avx512pf": false,
99cbc7
+        "xstore-en": false
99cbc7
+      }
99cbc7
+    }
99cbc7
+  },
99cbc7
+  "id": "model-expansion"
99cbc7
+}
99cbc7
+
99cbc7
+
99cbc7
+{
99cbc7
+  "return": [
99cbc7
+    {
99cbc7
+      "name": "max",
99cbc7
+      "typename": "max-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": false
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "host",
99cbc7
+      "typename": "host-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": false
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "base",
99cbc7
+      "typename": "base-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": true,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "qemu64",
99cbc7
+      "typename": "qemu64-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "qemu32",
99cbc7
+      "typename": "qemu32-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "phenom",
99cbc7
+      "typename": "phenom-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "mmxext",
99cbc7
+        "fxsr-opt",
99cbc7
+        "3dnowext",
99cbc7
+        "3dnow",
99cbc7
+        "sse4a",
99cbc7
+        "npt"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "pentium3",
99cbc7
+      "typename": "pentium3-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "pentium2",
99cbc7
+      "typename": "pentium2-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "pentium",
99cbc7
+      "typename": "pentium-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "n270",
99cbc7
+      "typename": "n270-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "kvm64",
99cbc7
+      "typename": "kvm64-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "kvm32",
99cbc7
+      "typename": "kvm32-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "cpu64-rhel6",
99cbc7
+      "typename": "cpu64-rhel6-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "sse4a"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "coreduo",
99cbc7
+      "typename": "coreduo-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "core2duo",
99cbc7
+      "typename": "core2duo-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "athlon",
99cbc7
+      "typename": "athlon-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "mmxext",
99cbc7
+        "3dnowext",
99cbc7
+        "3dnow"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Westmere",
99cbc7
+      "typename": "Westmere-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Westmere-IBRS",
99cbc7
+      "typename": "Westmere-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Skylake-Client",
99cbc7
+      "typename": "Skylake-Client-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "mpx",
99cbc7
+        "xsavec",
99cbc7
+        "xgetbv1",
99cbc7
+        "mpx",
99cbc7
+        "mpx"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Skylake-Client-IBRS",
99cbc7
+      "typename": "Skylake-Client-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "mpx",
99cbc7
+        "spec-ctrl",
99cbc7
+        "xsavec",
99cbc7
+        "xgetbv1",
99cbc7
+        "mpx",
99cbc7
+        "mpx"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "SandyBridge",
99cbc7
+      "typename": "SandyBridge-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "SandyBridge-IBRS",
99cbc7
+      "typename": "SandyBridge-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Penryn",
99cbc7
+      "typename": "Penryn-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Opteron_G5",
99cbc7
+      "typename": "Opteron_G5-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "sse4a",
99cbc7
+        "misalignsse",
99cbc7
+        "xop",
99cbc7
+        "fma4",
99cbc7
+        "tbm"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Opteron_G4",
99cbc7
+      "typename": "Opteron_G4-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "sse4a",
99cbc7
+        "misalignsse",
99cbc7
+        "xop",
99cbc7
+        "fma4"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Opteron_G3",
99cbc7
+      "typename": "Opteron_G3-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "sse4a",
99cbc7
+        "misalignsse"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Opteron_G2",
99cbc7
+      "typename": "Opteron_G2-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Opteron_G1",
99cbc7
+      "typename": "Opteron_G1-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Nehalem",
99cbc7
+      "typename": "Nehalem-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Nehalem-IBRS",
99cbc7
+      "typename": "Nehalem-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "IvyBridge",
99cbc7
+      "typename": "IvyBridge-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "IvyBridge-IBRS",
99cbc7
+      "typename": "IvyBridge-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Haswell",
99cbc7
+      "typename": "Haswell-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Haswell-noTSX",
99cbc7
+      "typename": "Haswell-noTSX-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Haswell-noTSX-IBRS",
99cbc7
+      "typename": "Haswell-noTSX-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Haswell-IBRS",
99cbc7
+      "typename": "Haswell-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Conroe",
99cbc7
+      "typename": "Conroe-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Broadwell",
99cbc7
+      "typename": "Broadwell-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Broadwell-noTSX",
99cbc7
+      "typename": "Broadwell-noTSX-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Broadwell-noTSX-IBRS",
99cbc7
+      "typename": "Broadwell-noTSX-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "Broadwell-IBRS",
99cbc7
+      "typename": "Broadwell-IBRS-x86_64-cpu",
99cbc7
+      "unavailable-features": [
99cbc7
+        "spec-ctrl"
99cbc7
+      ],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    },
99cbc7
+    {
99cbc7
+      "name": "486",
99cbc7
+      "typename": "486-x86_64-cpu",
99cbc7
+      "unavailable-features": [],
99cbc7
+      "static": false,
99cbc7
+      "migration-safe": true
99cbc7
+    }
99cbc7
+  ],
99cbc7
+  "id": "definitions"
99cbc7
+}
99cbc7
diff --git a/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.xml b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.xml
99cbc7
new file mode 100644
99cbc7
index 0000000000..d74c207104
99cbc7
--- /dev/null
99cbc7
+++ b/tests/cputestdata/x86_64-cpuid-Xeon-E5-2630-v4.xml
99cbc7
@@ -0,0 +1,43 @@
99cbc7
+
99cbc7
+<cpudata arch='x86'>
99cbc7
+  <cpuid eax_in='0x00000000' ecx_in='0x00' eax='0x00000014' ebx='0x756e6547' ecx='0x6c65746e' edx='0x49656e69'/>
99cbc7
+  <cpuid eax_in='0x00000001' ecx_in='0x00' eax='0x000406f1' ebx='0x01200800' ecx='0x7ffefbff' edx='0xbfebfbff'/>
99cbc7
+  <cpuid eax_in='0x00000002' ecx_in='0x00' eax='0x76036301' ebx='0x00f0b5ff' ecx='0x00000000' edx='0x00c30000'/>
99cbc7
+  <cpuid eax_in='0x00000003' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000004' ecx_in='0x00' eax='0x3c004121' ebx='0x01c0003f' ecx='0x0000003f' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000004' ecx_in='0x01' eax='0x3c004122' ebx='0x01c0003f' ecx='0x0000003f' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000004' ecx_in='0x02' eax='0x3c004143' ebx='0x01c0003f' ecx='0x000001ff' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000004' ecx_in='0x03' eax='0x3c07c163' ebx='0x04c0003f' ecx='0x00004fff' edx='0x00000006'/>
99cbc7
+  <cpuid eax_in='0x00000005' ecx_in='0x00' eax='0x00000040' ebx='0x00000040' ecx='0x00000003' edx='0x00002120'/>
99cbc7
+  <cpuid eax_in='0x00000006' ecx_in='0x00' eax='0x00000077' ebx='0x00000002' ecx='0x00000009' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000007' ecx_in='0x00' eax='0x00000000' ebx='0x021cbfbb' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000008' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000009' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000a' ecx_in='0x00' eax='0x07300403' ebx='0x00000000' ecx='0x00000000' edx='0x00000603'/>
99cbc7
+  <cpuid eax_in='0x0000000b' ecx_in='0x00' eax='0x00000001' ebx='0x00000002' ecx='0x00000100' edx='0x00000001'/>
99cbc7
+  <cpuid eax_in='0x0000000b' ecx_in='0x01' eax='0x00000005' ebx='0x00000014' ecx='0x00000201' edx='0x00000001'/>
99cbc7
+  <cpuid eax_in='0x0000000c' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000d' ecx_in='0x00' eax='0x00000007' ebx='0x00000340' ecx='0x00000340' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000d' ecx_in='0x01' eax='0x00000001' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000d' ecx_in='0x02' eax='0x00000100' ebx='0x00000240' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000e' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x0000000f' ecx_in='0x00' eax='0x00000000' ebx='0x0000004f' ecx='0x00000000' edx='0x00000002'/>
99cbc7
+  <cpuid eax_in='0x0000000f' ecx_in='0x01' eax='0x00000000' ebx='0x0000a000' ecx='0x0000004f' edx='0x00000007'/>
99cbc7
+  <cpuid eax_in='0x00000010' ecx_in='0x00' eax='0x00000000' ebx='0x00000002' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000010' ecx_in='0x01' eax='0x00000013' ebx='0x000c0000' ecx='0x00000004' edx='0x0000000f'/>
99cbc7
+  <cpuid eax_in='0x00000011' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000012' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000013' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x00000014' ecx_in='0x00' eax='0x00000000' ebx='0x00000001' ecx='0x00000001' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x80000000' ecx_in='0x00' eax='0x80000008' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x80000001' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000121' edx='0x2c100800'/>
99cbc7
+  <cpuid eax_in='0x80000002' ecx_in='0x00' eax='0x65746e49' ebx='0x2952286c' ecx='0x6f655820' edx='0x2952286e'/>
99cbc7
+  <cpuid eax_in='0x80000003' ecx_in='0x00' eax='0x55504320' ebx='0x2d354520' ecx='0x30333632' edx='0x20347620'/>
99cbc7
+  <cpuid eax_in='0x80000004' ecx_in='0x00' eax='0x2e322040' ebx='0x48473032' ecx='0x0000007a' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x80000005' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x80000006' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x01006040' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x80000007' ecx_in='0x00' eax='0x00000000' ebx='0x00000000' ecx='0x00000000' edx='0x00000100'/>
99cbc7
+  <cpuid eax_in='0x80000008' ecx_in='0x00' eax='0x0000302e' ebx='0x00000000' ecx='0x00000000' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0x80860000' ecx_in='0x00' eax='0x00000000' ebx='0x00000001' ecx='0x00000001' edx='0x00000000'/>
99cbc7
+  <cpuid eax_in='0xc0000000' ecx_in='0x00' eax='0x00000000' ebx='0x00000001' ecx='0x00000001' edx='0x00000000'/>
99cbc7
+</cpudata>
99cbc7
-- 
99cbc7
2.21.0
99cbc7