]> git.hungrycats.org Git - linux/commit
KVM/VMX: Expose SSBD properly to guests
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 21 May 2018 21:54:49 +0000 (17:54 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 3 Oct 2018 03:09:49 +0000 (04:09 +0100)
commit9fa8aec27b80d28da9fc308f51229bc8ee25ee52
treeff226407a18a7506afdfd55c2d102b3a01c7737d
parent5a9cbccff42fdecd30daaf8e88d4779cce055ac7
KVM/VMX: Expose SSBD properly to guests

commit 0aa48468d00959c8a37cd3ac727284f4f7359151 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: 52817587e706 ("x86/cpufeatures: Disentangle SSBD enumeration")
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: kvm@vger.kernel.org
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lkml.kernel.org/r/20180521215449.26423-2-konrad.wilk@oracle.com
[bwh: Backported to 3.16:
 - Fix guest_cpuid_has_spec_ctrl() as well
 - Adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kvm/cpuid.c
arch/x86/kvm/cpuid.h