[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/6] target/i386: Add few security fix bits in ARCH_CAPABILITI
From: |
Tao Su |
Subject: |
[PATCH v2 5/6] target/i386: Add few security fix bits in ARCH_CAPABILITIES into SapphireRapids CPU model |
Date: |
Thu, 6 Jul 2023 13:49:48 +0800 |
From: Lei Wang <lei4.wang@intel.com>
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>
---
target/i386/cpu.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 852c45b965..ec229072e7 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -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",
--
2.34.1
- [PATCH v2 0/6] Add new CPU model GraniteRapids, Tao Su, 2023/07/06
- [PATCH v2 1/6] target/i386: Add FEAT_7_1_EDX to adjust feature level, Tao Su, 2023/07/06
- [PATCH v2 2/6] target/i386: Add support for MCDT_NO in CPUID enumeration, Tao Su, 2023/07/06
- [PATCH v2 3/6] target/i386: Allow MCDT_NO if host supports, Tao Su, 2023/07/06
- [PATCH v2 4/6] target/i386: Add new bit definitions of MSR_IA32_ARCH_CAPABILITIES, Tao Su, 2023/07/06
- [PATCH v2 6/6] target/i386: Add new CPU model GraniteRapids, Tao Su, 2023/07/06
- [PATCH v2 5/6] target/i386: Add few security fix bits in ARCH_CAPABILITIES into SapphireRapids CPU model,
Tao Su <=
- Re: [PATCH v2 0/6] Add new CPU model GraniteRapids, Paolo Bonzini, 2023/07/07