]> git.baikalelectronics.ru Git - 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)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Nov 2021 11:43:29 +0000 (06:43 -0500)
commitf55443b28404d6bd1dac4a885fa9fde0d5d3e323
tree118d865598ee2df6e9af3baab002d83a91e7bf92
parent0d16e337c8dc9a83fbbb0a908260dba7cb7c52ba
KVM: x86: ignore APICv if LAPIC is not enabled

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>
arch/x86/kvm/x86.c