KVM: x86: Route pending NMIs from userspace through process_nmi()
authorSean Christopherson <seanjc@google.com>
Thu, 23 Mar 2023 00:40:16 +0000 (17:40 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 23 Mar 2023 00:40:16 +0000 (17:40 -0700)
commitbdedff263132c862924f5cad96f0e82eeeb4e2e6
treeb65a8764e7cfe0bb572b15dd629af4889b574fba
parent1c4522ab13b163173971d8b0c0eb0b253b1b7f28
KVM: x86: Route pending NMIs from userspace through process_nmi()

Use the asynchronous NMI queue to handle pending NMIs coming in from
userspace during KVM_SET_VCPU_EVENTS so that all of KVM's logic for
handling multiple NMIs goes through process_nmi().  This will simplify
supporting SVM's upcoming "virtual NMI" functionality, which will need
changes KVM manages pending NMIs.

Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c