KVM: VMX: Provide separate subroutines for invoking NMI vs. IRQ handlers
authorSean Christopherson <seanjc@google.com>
Tue, 13 Dec 2022 06:09:11 +0000 (06:09 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:36:41 +0000 (10:36 -0800)
commit4f76e86f7e0dc33af14256d30177bf65de2f9cab
tree2b2eed8c95f88e3734774deccfd418327966c22b
parent54a3b70a75dcde8173e3d8ccc60f9ecd7af7b5f2
KVM: VMX: Provide separate subroutines for invoking NMI vs. IRQ handlers

Split the asm subroutines for handling NMIs versus IRQs that occur in the
guest so that the NMI handler can be called from a noinstr section.  As a
bonus, the NMI path doesn't need an indirect branch.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20221213060912.654668-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmenter.S
arch/x86/kvm/vmx/vmx.c