summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorLiran Alon <liran.alon@oracle.com>2018-09-14 02:25:53 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-10-01 15:40:57 +0200
commit503234b3fdcaa578395c07e393ea3e5d13958824 (patch)
treee9af2ec58f9a9b821cf2e3b321aa0360a06839c4 /arch/x86/kvm/x86.c
parentKVM: nVMX: Do not expose MPX VMX controls when guest MPX disabled (diff)
downloadlinux-503234b3fdcaa578395c07e393ea3e5d13958824.tar.xz
linux-503234b3fdcaa578395c07e393ea3e5d13958824.zip
KVM: x86: Do not use kvm_x86_ops->mpx_supported() directly
Commit a87036add092 ("KVM: x86: disable MPX if host did not enable MPX XSAVE features") introduced kvm_mpx_supported() to return true iff MPX is enabled in the host. However, that commit seems to have missed replacing some calls to kvm_x86_ops->mpx_supported() to kvm_mpx_supported(). Complete original commit by replacing remaining calls to kvm_mpx_supported(). Fixes: a87036add092 ("KVM: x86: disable MPX if host did not enable MPX XSAVE features") Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Liran Alon <liran.alon@oracle.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index edbf00ec56b3..ca717737347e 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4698,7 +4698,7 @@ static void kvm_init_msr_list(void)
*/
switch (msrs_to_save[i]) {
case MSR_IA32_BNDCFGS:
- if (!kvm_x86_ops->mpx_supported())
+ if (!kvm_mpx_supported())
continue;
break;
case MSR_TSC_AUX: