OSDN Git Service

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:44:59 +0000 (07:44 +0200)
commita40f0ccd4f1c2751d5df5d9a63b9cf93ff70d343
treed7c9d18fd939fae079aecaef569242386839a699
parentbe6f33a61f335cb06b3c8c2cee90214f97c4bda3
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