summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/cpuid.c
diff options
context:
space:
mode:
authorKim Phillips <kim.phillips@amd.com>2023-01-24 17:33:19 +0100
committerBorislav Petkov (AMD) <bp@alien8.de>2023-01-25 17:21:40 +0100
commit8c19b6f257fa71ed3a7a9df6ce466c6be31ca04c (patch)
tree96793126145310ca3a474b9032e63c3c0495edd8 /arch/x86/kvm/cpuid.c
parentx86/cpu: Support AMD Automatic IBRS (diff)
downloadlinux-8c19b6f257fa71ed3a7a9df6ce466c6be31ca04c.tar.xz
linux-8c19b6f257fa71ed3a7a9df6ce466c6be31ca04c.zip
KVM: x86: Propagate the AMD Automatic IBRS feature to the guest
Add the AMD Automatic IBRS feature bit to those being propagated to the guest, and enable the guest EFER bit. Signed-off-by: Kim Phillips <kim.phillips@amd.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Sean Christopherson <seanjc@google.com> Link: https://lore.kernel.org/r/20230124163319.2277355-9-kim.phillips@amd.com
Diffstat (limited to 'arch/x86/kvm/cpuid.c')
-rw-r--r--arch/x86/kvm/cpuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 28071e9376fb..f1f4fe87e720 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -743,7 +743,7 @@ void kvm_set_cpu_caps(void)
kvm_cpu_cap_mask(CPUID_8000_0021_EAX,
F(NO_NESTED_DATA_BP) | F(LFENCE_RDTSC) | 0 /* SmmPgCfgLock */ |
- F(NULL_SEL_CLR_BASE) | 0 /* PrefetchCtlMsr */
+ F(NULL_SEL_CLR_BASE) | F(AUTOIBRS) | 0 /* PrefetchCtlMsr */
);
/*