]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:44 +0000 (14:51 +0100)
commit3c81fff77cfdb51974929a190ebbdbe5ac8cd754
tree059fefb98ecb3ae0f344fff5a54d72161424f1ab
parent82ba86c25383e9a639fea853de427526eeb22e90
KVM: x86: Do not use kvm_x86_ops->mpx_supported() directly

[ Upstream commit 503234b3fdcaa578395c07e393ea3e5d13958824 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c