qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests
@ 2023-06-23 20:26 Pawan Gupta
  2023-06-26 11:11 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Pawan Gupta @ 2023-06-23 20:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Chao Gao

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>
---
 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 1242bd541a53..66d6062aea7c 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -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 = {
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests
  2023-06-23 20:26 [PATCH] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests Pawan Gupta
@ 2023-06-26 11:11 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2023-06-26 11:11 UTC (permalink / raw)
  To: Pawan Gupta; +Cc: qemu-devel, Chao Gao

Queued, thanks.

Paolo



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-26 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-23 20:26 [PATCH] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests Pawan Gupta
2023-06-26 11:11 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).