|
|
b38b0f |
From 2d44f02611fcb0eddad08d2c5d4361d568fcfd67 Mon Sep 17 00:00:00 2001
|
|
|
b38b0f |
From: "plai@redhat.com" <plai@redhat.com>
|
|
|
b38b0f |
Date: Mon, 1 Jul 2019 16:17:30 +0100
|
|
|
b38b0f |
Subject: [PATCH 01/39] i386: Add new model of Cascadelake-Server
|
|
|
b38b0f |
|
|
|
b38b0f |
RH-Author: plai@redhat.com
|
|
|
b38b0f |
Message-id: <1561997854-9646-2-git-send-email-plai@redhat.com>
|
|
|
b38b0f |
Patchwork-id: 89331
|
|
|
b38b0f |
O-Subject: [RHEL8.1 qemu-kvm PATCH v6 1/5] i386: Add new model of Cascadelake-Server
|
|
|
b38b0f |
Bugzilla: 1629906
|
|
|
b38b0f |
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
b38b0f |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
b38b0f |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
b38b0f |
|
|
|
b38b0f |
From: Tao Xu <tao3.xu@intel.com>
|
|
|
b38b0f |
|
|
|
b38b0f |
New CPU models mostly inherit features from ancestor Skylake-Server,
|
|
|
b38b0f |
while addin new features: AVX512_VNNI, Intel PT.
|
|
|
b38b0f |
SSBD support for speculative execution
|
|
|
b38b0f |
side channel mitigations.
|
|
|
b38b0f |
|
|
|
b38b0f |
Note:
|
|
|
b38b0f |
|
|
|
b38b0f |
On Cascadelake, some capabilities (RDCL_NO, IBRS_ALL, RSBA,
|
|
|
b38b0f |
SKIP_L1DFL_VMENTRY and SSB_NO) are enumerated by MSR.
|
|
|
b38b0f |
These features rely on MSR based feature support patch.
|
|
|
b38b0f |
Will be added later after that patch's in.
|
|
|
b38b0f |
http://lists.nongnu.org/archive/html/qemu-devel/2018-09/msg00074.html
|
|
|
b38b0f |
|
|
|
b38b0f |
Signed-off-by: Tao Xu <tao3.xu@intel.com>
|
|
|
b38b0f |
Message-Id: <20180919031122.28487-2-tao3.xu@intel.com>
|
|
|
b38b0f |
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
b38b0f |
(cherry picked from commit c7a88b52f62b30c04158eeb07f73e3f72221b6a8)
|
|
|
b38b0f |
Signed-off-by: Paul Lai <plai@redhat.com>
|
|
|
b38b0f |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
b38b0f |
---
|
|
|
b38b0f |
target/i386/cpu.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
b38b0f |
1 file changed, 54 insertions(+)
|
|
|
b38b0f |
|
|
|
b38b0f |
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
|
|
|
b38b0f |
index 5c10093..9ba5288 100644
|
|
|
b38b0f |
--- a/target/i386/cpu.c
|
|
|
b38b0f |
+++ b/target/i386/cpu.c
|
|
|
b38b0f |
@@ -2483,6 +2483,60 @@ static X86CPUDefinition builtin_x86_defs[] = {
|
|
|
b38b0f |
.model_id = "Intel Xeon Processor (Skylake, IBRS)",
|
|
|
b38b0f |
},
|
|
|
b38b0f |
{
|
|
|
b38b0f |
+ .name = "Cascadelake-Server",
|
|
|
b38b0f |
+ .level = 0xd,
|
|
|
b38b0f |
+ .vendor = CPUID_VENDOR_INTEL,
|
|
|
b38b0f |
+ .family = 6,
|
|
|
b38b0f |
+ .model = 85,
|
|
|
b38b0f |
+ .stepping = 5,
|
|
|
b38b0f |
+ .features[FEAT_1_EDX] =
|
|
|
b38b0f |
+ CPUID_VME | CPUID_SSE2 | CPUID_SSE | CPUID_FXSR | CPUID_MMX |
|
|
|
b38b0f |
+ CPUID_CLFLUSH | CPUID_PSE36 | CPUID_PAT | CPUID_CMOV | CPUID_MCA |
|
|
|
b38b0f |
+ CPUID_PGE | CPUID_MTRR | CPUID_SEP | CPUID_APIC | CPUID_CX8 |
|
|
|
b38b0f |
+ CPUID_MCE | CPUID_PAE | CPUID_MSR | CPUID_TSC | CPUID_PSE |
|
|
|
b38b0f |
+ CPUID_DE | CPUID_FP87,
|
|
|
b38b0f |
+ .features[FEAT_1_ECX] =
|
|
|
b38b0f |
+ CPUID_EXT_AVX | CPUID_EXT_XSAVE | CPUID_EXT_AES |
|
|
|
b38b0f |
+ CPUID_EXT_POPCNT | CPUID_EXT_X2APIC | CPUID_EXT_SSE42 |
|
|
|
b38b0f |
+ CPUID_EXT_SSE41 | CPUID_EXT_CX16 | CPUID_EXT_SSSE3 |
|
|
|
b38b0f |
+ CPUID_EXT_PCLMULQDQ | CPUID_EXT_SSE3 |
|
|
|
b38b0f |
+ CPUID_EXT_TSC_DEADLINE_TIMER | CPUID_EXT_FMA | CPUID_EXT_MOVBE |
|
|
|
b38b0f |
+ CPUID_EXT_PCID | CPUID_EXT_F16C | CPUID_EXT_RDRAND,
|
|
|
b38b0f |
+ .features[FEAT_8000_0001_EDX] =
|
|
|
b38b0f |
+ CPUID_EXT2_LM | CPUID_EXT2_PDPE1GB | CPUID_EXT2_RDTSCP |
|
|
|
b38b0f |
+ CPUID_EXT2_NX | CPUID_EXT2_SYSCALL,
|
|
|
b38b0f |
+ .features[FEAT_8000_0001_ECX] =
|
|
|
b38b0f |
+ CPUID_EXT3_ABM | CPUID_EXT3_LAHF_LM | CPUID_EXT3_3DNOWPREFETCH,
|
|
|
b38b0f |
+ .features[FEAT_7_0_EBX] =
|
|
|
b38b0f |
+ CPUID_7_0_EBX_FSGSBASE | CPUID_7_0_EBX_BMI1 |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_HLE | CPUID_7_0_EBX_AVX2 | CPUID_7_0_EBX_SMEP |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_BMI2 | CPUID_7_0_EBX_ERMS | CPUID_7_0_EBX_INVPCID |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_RTM | CPUID_7_0_EBX_RDSEED | CPUID_7_0_EBX_ADX |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_SMAP | CPUID_7_0_EBX_MPX | CPUID_7_0_EBX_CLWB |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_AVX512F | CPUID_7_0_EBX_AVX512DQ |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_AVX512BW | CPUID_7_0_EBX_AVX512CD |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_AVX512VL | CPUID_7_0_EBX_CLFLUSHOPT |
|
|
|
b38b0f |
+ CPUID_7_0_EBX_INTEL_PT,
|
|
|
b38b0f |
+ .features[FEAT_7_0_ECX] =
|
|
|
b38b0f |
+ CPUID_7_0_ECX_PKU | CPUID_7_0_ECX_OSPKE |
|
|
|
b38b0f |
+ CPUID_7_0_ECX_AVX512VNNI,
|
|
|
b38b0f |
+ .features[FEAT_7_0_EDX] =
|
|
|
b38b0f |
+ CPUID_7_0_EDX_SPEC_CTRL | CPUID_7_0_EDX_SPEC_CTRL_SSBD,
|
|
|
b38b0f |
+ /* Missing: XSAVES (not supported by some Linux versions,
|
|
|
b38b0f |
+ * including v4.1 to v4.12).
|
|
|
b38b0f |
+ * KVM doesn't yet expose any XSAVES state save component,
|
|
|
b38b0f |
+ * and the only one defined in Skylake (processor tracing)
|
|
|
b38b0f |
+ * probably will block migration anyway.
|
|
|
b38b0f |
+ */
|
|
|
b38b0f |
+ .features[FEAT_XSAVE] =
|
|
|
b38b0f |
+ CPUID_XSAVE_XSAVEOPT | CPUID_XSAVE_XSAVEC |
|
|
|
b38b0f |
+ CPUID_XSAVE_XGETBV1,
|
|
|
b38b0f |
+ .features[FEAT_6_EAX] =
|
|
|
b38b0f |
+ CPUID_6_EAX_ARAT,
|
|
|
b38b0f |
+ .xlevel = 0x80000008,
|
|
|
b38b0f |
+ .model_id = "Intel Xeon Processor (Cascadelake)",
|
|
|
b38b0f |
+ },
|
|
|
b38b0f |
+ {
|
|
|
b38b0f |
.name = "Icelake-Client",
|
|
|
b38b0f |
.level = 0xd,
|
|
|
b38b0f |
.vendor = CPUID_VENDOR_INTEL,
|
|
|
b38b0f |
--
|
|
|
b38b0f |
1.8.3.1
|
|
|
b38b0f |
|