]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: VMX: Process PIR using 64-bit accesses on 64-bit kernels
authorSean Christopherson <seanjc@google.com>
Tue, 1 Apr 2025 16:34:44 +0000 (09:34 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 24 Apr 2025 18:19:39 +0000 (11:19 -0700)
commit06b4d0ea226c295e85a9daa6aed0ae9fa3ff8a94
tree51f319876b322c74bb362d0c5dd2c4ac16c0ed44
parentf1459315f4d2ff4bf02896e541e1566a69a8fd00
KVM: VMX: Process PIR using 64-bit accesses on 64-bit kernels

Process the PIR at the natural kernel width, i.e. in 64-bit chunks on
64-bit kernels, so that the worst case of having a posted IRQ in each
chunk of the vIRR only requires 4 loads and xchgs from/to the PIR, not 8.

Deliberately use a "continue" to skip empty entries so that the code is a
carbon copy of handle_pending_pir(), in anticipation of deduplicating KVM
and posted MSI logic.

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