]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Do not use kvm_x86_ops->mpx_supported() directly
authorLiran Alon <liran.alon@oracle.com>
Fri, 14 Sep 2018 00:25:53 +0000 (03:25 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Oct 2018 13:40:57 +0000 (15:40 +0200)
commite967f6381f9dc927ade7719dbdda5ec0c5e1e515
treee9af2ec58f9a9b821cf2e3b321aa0360a06839c4
parent0ac4218317419527f2b738a8da6498dafcaccf41
KVM: x86: Do not use kvm_x86_ops->mpx_supported() directly

Commit 9896d2e75fe0 ("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: 9896d2e75fe0 ("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>
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c