]> git.baikalelectronics.ru Git - kernel.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)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 7 Jun 2017 14:28:15 +0000 (16:28 +0200)
commit4c40b9b397a581e15b4e946ffeaa947f9a9eb57a
tree3062d9fd5f53b990277c43c01f06af6f0dafbbf0
parentcaf7746a9ac3012a3df50c805a97cb12283cdca1
kvm: x86: Guest BNDCFGS requires guest MPX support

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

Fixes: 5a3fc88905906c02 ("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>
arch/x86/kvm/cpuid.h
arch/x86/kvm/vmx.c