]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use the kernel's version of VMXOFF
authorSean Christopherson <seanjc@google.com>
Thu, 31 Dec 2020 00:26:59 +0000 (16:26 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:33 +0000 (05:27 -0500)
commite9a25a34e1ed52f01dfb6f31ddfc7c8d33e7420b
tree89802c61a946500cce7116b05145237061cbf47d
parentc11b675fa2020da26c0a336a5e43ce13e7d3cc20
KVM: VMX: Use the kernel's version of VMXOFF

Drop kvm_cpu_vmxoff() in favor of the kernel's cpu_vmxoff().  Modify the
latter to return -EIO on fault so that KVM can invoke
kvm_spurious_fault() when appropriate.  In addition to the obvious code
reuse, dropping kvm_cpu_vmxoff() also eliminates VMX's last usage of the
__ex()/__kvm_handle_fault_on_reboot() macros, thus helping pave the way
toward dropping them entirely.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20201231002702.2223707-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/virtext.h
arch/x86/kvm/vmx/vmx.c