target/i386: Add few security fix bits in ARCH_CAPABILITIES into SapphireRapids CPU...
authorLei Wang <lei4.wang@intel.com>
Thu, 6 Jul 2023 05:49:48 +0000 (13:49 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 7 Jul 2023 10:52:27 +0000 (12:52 +0200)
SapphireRapids has bit 13, 14 and 15 of MSR_IA32_ARCH_CAPABILITIES
enabled, which are related to some security fixes.

Add version 2 of SapphireRapids CPU model with those bits enabled also.

Signed-off-by: Lei Wang <lei4.wang@intel.com>
Signed-off-by: Tao Su <tao1.su@linux.intel.com>
Message-ID: <20230706054949.66556-6-tao1.su@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c

index 852c45b9658754bf01383a2d09c6c5d2ad29d94c..ec229072e76580c857d4aa49b42fc9bc33ac7e8d 100644 (file)
@@ -3944,8 +3944,17 @@ static const X86CPUDefinition builtin_x86_defs[] = {
         .model_id = "Intel Xeon Processor (SapphireRapids)",
         .versions = (X86CPUVersionDefinition[]) {
             { .version = 1 },
-            { /* end of list */ },
-        },
+            {
+                .version = 2,
+                .props = (PropValue[]) {
+                    { "sbdr-ssdp-no", "on" },
+                    { "fbsdp-no", "on" },
+                    { "psdp-no", "on" },
+                    { /* end of list */ }
+                }
+            },
+            { /* end of list */ }
+        }
     },
     {
         .name = "Denverton",