KVM: VMX: Invoke NMI handler via indirect call instead of INTn
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 15 Sep 2020 19:15:05 +0000 (12:15 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:20 +0000 (07:57 -0400)
commit1a5488ef0dcf6af5b2a69144ad6732dd67e98146
tree813ca1ce5a3196cfa0e6bca7e45700093d648763
parent535f7ef2ab7dbfbcfe732ee7634faca21417a777
KVM: VMX: Invoke NMI handler via indirect call instead of INTn

Rework NMI VM-Exit handling to invoke the kernel handler by function
call instead of INTn.  INTn microcode is relatively expensive, and
aligning the IRQ and NMI handling will make it easier to update KVM
should some newfangled method for invoking the handlers come along.

Suggested-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200915191505.10355-3-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c