KVM: VMX: Don't unblock vCPU w/ Posted IRQ if IRQs are disabled in guest
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Nov 2021 14:32:47 +0000 (09:32 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:45 +0000 (04:24 -0500)
commit1831fa44df743a7cdffdf1c12c799bf6f3c12b8c
treeb58db3711a9e9315210acccc53a363ce7b432c47
parent98a26b69d8c3b7b2bd51350b1a1218c518d32123
KVM: VMX: Don't unblock vCPU w/ Posted IRQ if IRQs are disabled in guest

Don't configure the wakeup handler when a vCPU is blocking with IRQs
disabled, in which case any IRQ, posted or otherwise, should not be
recognized and thus should not wake the vCPU.

Fixes: bf9f6ac8d749 ("KVM: Update Posted-Interrupts Descriptor when vCPU is blocked")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211009021236.4122790-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/posted_intr.c