[PATCH 0/3] KVM: x86: Clean up lowest priority IRQ code

Sean Christopherson posted 3 patches 1 month, 1 week ago
arch/x86/kvm/irq.c   | 57 ------------------------------
arch/x86/kvm/irq.h   |  4 ---
arch/x86/kvm/lapic.c | 82 +++++++++++++++++++++++++++++++++++++++-----
arch/x86/kvm/lapic.h | 12 ++-----
arch/x86/kvm/x86.c   |  8 -----
arch/x86/kvm/x86.h   |  1 -
6 files changed, 77 insertions(+), 87 deletions(-)
[PATCH 0/3] KVM: x86: Clean up lowest priority IRQ code
Posted by Sean Christopherson 1 month, 1 week ago
Move some local APIC specific code into lapic.c that has no business being
exposed outside of local APIC emulation.   The lowest priority vector
hashing code in particular is *very* specific to lapic.c internals, but
that's not at all obvious from the globally-visible symbols.

Sean Christopherson (3):
  KVM: x86: Move kvm_irq_delivery_to_apic() from irq.c to lapic.c
  KVM: x86: Make "lowest priority" helpers local to lapic.c
  KVM: x86: Move vector_hashing into lapic.c

 arch/x86/kvm/irq.c   | 57 ------------------------------
 arch/x86/kvm/irq.h   |  4 ---
 arch/x86/kvm/lapic.c | 82 +++++++++++++++++++++++++++++++++++++++-----
 arch/x86/kvm/lapic.h | 12 ++-----
 arch/x86/kvm/x86.c   |  8 -----
 arch/x86/kvm/x86.h   |  1 -
 6 files changed, 77 insertions(+), 87 deletions(-)


base-commit: 9c7a1f8d8784e17bb6e0df4f616fbd8daae02919
-- 
2.51.0.261.g7ce5a0a67e-goog
Re: [PATCH 0/3] KVM: x86: Clean up lowest priority IRQ code
Posted by Sean Christopherson 2 weeks, 3 days ago
On Thu, 21 Aug 2025 14:42:06 -0700, Sean Christopherson wrote:
> Move some local APIC specific code into lapic.c that has no business being
> exposed outside of local APIC emulation.   The lowest priority vector
> hashing code in particular is *very* specific to lapic.c internals, but
> that's not at all obvious from the globally-visible symbols.
> 
> Sean Christopherson (3):
>   KVM: x86: Move kvm_irq_delivery_to_apic() from irq.c to lapic.c
>   KVM: x86: Make "lowest priority" helpers local to lapic.c
>   KVM: x86: Move vector_hashing into lapic.c
> 
> [...]

Applied to kvm-x86 misc, thanks!

[1/3] KVM: x86: Move kvm_irq_delivery_to_apic() from irq.c to lapic.c
      https://github.com/kvm-x86/linux/commit/cbf5d9457462
[2/3] KVM: x86: Make "lowest priority" helpers local to lapic.c
      https://github.com/kvm-x86/linux/commit/73473f31a4bf
[3/3] KVM: x86: Move vector_hashing into lapic.c
      https://github.com/kvm-x86/linux/commit/aac057dd6231

--
https://github.com/kvm-x86/linux/tree/next