]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8fb6bf7d06920f14c722ebbfd2f35ff3182edc0
tree813ca1ce5a3196cfa0e6bca7e45700093d648763
parentfc58298ec2d66d393b16795e1062042ed16b683c
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