[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/5] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests
From: |
Paolo Bonzini |
Subject: |
[PULL 2/5] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests |
Date: |
Thu, 29 Jun 2023 12:19:15 +0200 |
From: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
On Intel CPUs there are certain bits in MSR_ARCH_CAPABILITIES that
indicates if the CPU is not affected by a vulnerability. Without these
bits guests may try to deploy the mitigation even if the CPU is not
affected.
Export the bits to guests that indicate immunity to hardware
vulnerabilities.
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Message-ID:
<63d85cc76d4cdc51e6c732478b81d8f13be11e5a.1687551881.git.pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
target/i386/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index c0fb6b3ad92..b96a609d966 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1060,10 +1060,10 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
"rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry",
"ssb-no", "mds-no", "pschange-mc-no", "tsx-ctrl",
"taa-no", NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
+ NULL, "sbdr-ssdp-no", "fbsdp-no", "psdp-no",
NULL, "fb-clear", NULL, NULL,
NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL,
+ "pbrsb-no", NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
},
.msr = {
--
2.41.0
- [PULL 0/5] x86, main loop changes for 2023-06-29, Paolo Bonzini, 2023/06/29
- [PULL 1/5] icount: don't adjust virtual time backwards after warp, Paolo Bonzini, 2023/06/29
- [PULL 2/5] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests,
Paolo Bonzini <=
- [PULL 3/5] target/i386: ignore ARCH_CAPABILITIES features in user mode emulation, Paolo Bonzini, 2023/06/29
- [PULL 4/5] target/i386: ignore CPL0-specific features in user mode emulation, Paolo Bonzini, 2023/06/29
- [PULL 5/5] target/i386: emulate 64-bit ring 0 for linux-user if LM feature is set, Paolo Bonzini, 2023/06/29
- Re: [PULL 0/5] x86, main loop changes for 2023-06-29, Richard Henderson, 2023/06/29