Skip to content

Commit 43462d9

Browse files
konradwilkgregkh
authored andcommitted
KVM/VMX: Expose SSBD properly to guests
commit 0aa4846 upstream. The X86_FEATURE_SSBD is an synthetic CPU feature - that is it bit location has no relevance to the real CPUID 0x7.EBX[31] bit position. For that we need the new CPU feature name. Fixes: 5281758 ("x86/cpufeatures: Disentangle SSBD enumeration") Signed-off-by: Konrad Rzeszutek Wilk <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: "Radim Krčmář" <[email protected]> Cc: [email protected] Cc: "H. Peter Anvin" <[email protected]> Cc: Paolo Bonzini <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ec1975a commit 43462d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/cpuid.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
382382

383383
/* cpuid 7.0.edx*/
384384
const u32 kvm_cpuid_7_0_edx_x86_features =
385-
F(SPEC_CTRL) | F(SSBD) | F(ARCH_CAPABILITIES);
385+
F(SPEC_CTRL) | F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES);
386386

387387
/* all calls to cpuid_count() should be made on the same cpu */
388388
get_cpu();

0 commit comments

Comments
 (0)