]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
KVM: x86: ignore APICv if LAPIC is not enabled
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Nov 2021 12:35:44 +0000 (07:35 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:49:07 +0000 (09:49 +0100)
commit86c88b8294b6774d307a1a7c252ea640d4392731
treedd20adc4aa7ee42a2c752047ec35a9982a4e60b3
parent9dae50d22d70b9b54ae4aea0474bbe43ffcd1bc2
KVM: x86: ignore APICv if LAPIC is not enabled

BugLink: https://bugs.launchpad.net/bugs/1953731
commit 78311a514099932cd8434d5d2194aa94e56ab67c upstream.

Synchronize the two calls to kvm_x86_sync_pir_to_irr.  The one
in the reenter-guest fast path invoked the callback unconditionally
even if LAPIC is present but disabled.  In this case, there are
no interrupts to deliver, and therefore posted interrupts can
be ignored.

Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/x86/kvm/x86.c