]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: VMX: Use arch_xchg() when processing PIR to avoid instrumentation
authorSean Christopherson <seanjc@google.com>
Tue, 1 Apr 2025 16:34:46 +0000 (09:34 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 24 Apr 2025 18:19:40 +0000 (11:19 -0700)
commitbaf68a0e3bd624bc300381a757f660451483fb7f
treea7bb28b45913f24ba02aa0dfc73abc3dea7dc735
parentb41f8638b9d30fbe045b4ef83ff4136c56a57397
KVM: VMX: Use arch_xchg() when processing PIR to avoid instrumentation

Use arch_xchg() when moving IRQs from the PIR to the vIRR, purely to avoid
instrumentation so that KVM is compatible with the needs of posted MSI.
This will allow extracting the core PIR logic to common code and sharing
it between KVM and posted MSI handling.

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