]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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 Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:46 +0000 (15:17 +0100)
commiteb9af0cb0df3098ef286ce538f7532be973d0256
tree64eb1340f7cedb39f31ac942a83c20637a469ae8
parent08c2dbf04f4f6888155641cc97934ebedbc0926d
KVM: VMX: Don't unblock vCPU w/ Posted IRQ if IRQs are disabled in guest

BugLink: https://bugs.launchpad.net/bugs/1964361
[ Upstream commit 1831fa44df743a7cdffdf1c12c799bf6f3c12b8c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/x86/kvm/vmx/posted_intr.c