]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/kvm/cpuid.c
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 22 May 2018 16:28:51 +0000 (18:28 +0200)
commitce65486edf604eabd4459fff52c787dc048db45d
tree22b8e9f7cd0900d20912ba0abcc7966b0bb0f0ce
parentabd098e05e7acab57fdedcdc11791aa10da12237
KVM: VMX: Expose SSBD properly to guests.

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")
CC: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: stable@vger.kernel.org
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
CVE-2018-3639 (x86)

(cherry-picked from https://patchwork.kernel.org/patch/10416823/)
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/kvm/cpuid.c