x86/irq: KVM: Add helper for harvesting PIR to deduplicate KVM and posted MSIs
authorSean Christopherson <seanjc@google.com>
Tue, 1 Apr 2025 16:34:47 +0000 (09:34 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 24 Apr 2025 18:19:41 +0000 (11:19 -0700)
commitedaf3eded386257b0e6504f6b2c29fd8d84c8d29
treed4d005981b0da1b8676fbbad7691a9d3f0508751
parentbaf68a0e3bd624bc300381a757f660451483fb7f
x86/irq: KVM: Add helper for harvesting PIR to deduplicate KVM and posted MSIs

Now that posted MSI and KVM harvesting of PIR is identical, extract the
code (and posted MSI's wonderful comment) to a common helper.

No functional change intended.

Link: https://lore.kernel.org/r/20250401163447.846608-9-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/posted_intr.h
arch/x86/kernel/irq.c
arch/x86/kvm/lapic.c