diff options
author | Pawan Gupta <pawan.kumar.gupta@linux.intel.com> | 2025-05-12 10:26:04 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-12 21:02:51 +0200 |
commit | 74978391b2da0116b9109d52931f342118d5a122 (patch) | |
tree | bfb300ec9127ce19cf3e396a4ece793dc6d56ff5 | |
parent | bbdbc47b5c6907e065f84e751d127dae3cebfd54 (diff) | |
download | qemu-74978391b2da0116b9109d52931f342118d5a122.zip qemu-74978391b2da0116b9109d52931f342118d5a122.tar.gz qemu-74978391b2da0116b9109d52931f342118d5a122.tar.bz2 |
target/i386: Make ITS_NO available to guests
When a system is not affected by Indirect Target Selection (ITS)
vulnerability, VMMs set ITS_NO bit in MSR IA32_ARCH_CAPABILITIES to let the
guest know that it is not affected.
Make it available to guests.
Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Link: https://lore.kernel.org/r/8c1797e488b42650f62d816f25c58726eb522fad.1745946029.git.pawan.kumar.gupta@linux.intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | target/i386/cpu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 1656de3..ec908d7 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -1383,6 +1383,14 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = { "bhi-no", NULL, NULL, NULL, "pbrsb-no", NULL, "gds-no", "rfds-no", "rfds-clear", NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL, NULL, NULL, + NULL, NULL, "its-no", NULL, }, .msr = { .index = MSR_IA32_ARCH_CAPABILITIES, |