]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kvm: x86: Guest BNDCFGS requires guest MPX support
authorJim Mattson <jmattson@google.com>
Wed, 24 May 2017 17:49:25 +0000 (10:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 05:00:16 +0000 (07:00 +0200)
commite0c0372d43bbe3a7d0f2c61cbf7c1a9566a9ed58
tree09452f7d47518239053185cf3d4f0ebd3829bdf5
parente36fbd0c09fc3f33ce156b022a2ec0a17802f6e9
kvm: x86: Guest BNDCFGS requires guest MPX support

commit 4439af9f911ae0243ffe4e2dfc12bace49605d8b upstream.

The BNDCFGS MSR should only be exposed to the guest if the guest
supports MPX. (cf. the TSC_AUX MSR and RDTSCP.)

Fixes: 0dd376e709975779 ("KVM: x86: add MSR_IA32_BNDCFGS to msrs_to_save")
Change-Id: I3ad7c01bda616715137ceac878f3fa7e66b6b387
Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/cpuid.h
arch/x86/kvm/vmx.c