]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: VMX: Ensure vIRR isn't reloaded at odd times when sync'ing PIR
authorSean Christopherson <seanjc@google.com>
Tue, 1 Apr 2025 16:34:42 +0000 (09:34 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 24 Apr 2025 18:19:38 +0000 (11:19 -0700)
commit6433fc01f9f19573894cdcf776679c10d1310801
tree8256cf8368d15fbc972711d3ace19dc8c9c6803b
parent3cdb8261504cc5503a74d57e619cd7915431b088
KVM: VMX: Ensure vIRR isn't reloaded at odd times when sync'ing PIR

Read each vIRR exactly once when shuffling IRQs from the PIR to the vAPIC
to ensure getting the highest priority IRQ from the chunk doesn't reload
from the vIRR.  In practice, a reload is functionally benign as vcpu->mutex
is held and so IRQs can be consumed, i.e. new IRQs can appear, but existing
IRQs can't disappear.

Link: https://lore.kernel.org/r/20250401163447.846608-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c