KVM: nVMX: Make an event request if INIT or SIPI is pending on VM-Enter
authorSean Christopherson <seanjc@google.com>
Wed, 21 Sep 2022 00:31:56 +0000 (00:31 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:37:19 +0000 (12:37 -0400)
commita56953e9506c068c4becbd2c067ba08c82da78fc
treeaa1e617f9e3b3982ea145212f634dff309c3b30c
parent0bba8fc24c7593068d5defd0238b723bf7aecc84
KVM: nVMX: Make an event request if INIT or SIPI is pending on VM-Enter

Evaluate interrupts, i.e. set KVM_REQ_EVENT, if INIT or SIPI is pending
when emulating nested VM-Enter.  INIT is blocked while the CPU is in VMX
root mode, but not in VMX non-root, i.e. becomes unblocked on VM-Enter.
This bug has been masked by KVM calling ->check_nested_events() in the
core run loop, but that hack will be fixed in the near future.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220921003201.1441511-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c