Skip to contentSkip to conversation

target/i386: Export MSR_ARCH_CAPABILITIES bits to guests

PATCH Applied Pawan Gupta 2 participants 2 messages Jun 23, 2023 – Jun 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/i386: Export MSR_ARCH_CAPABILITIES bits to guests

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.

---
 target/i386/cpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
target/i386/cpu.c +2 -2
index 1242bd541a53..66d6062aea7c 100644
@@ -1049,10 +1049,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 = {
Signature · 1 line
2.34.1