mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/9] KVM: x86: APIC and I/O APIC cleanups
@ 2025-12-06  0:43 Sean Christopherson
  2025-12-06  0:43 ` [PATCH 1/9] KVM: x86: Drop ASSERT()s on APIC/vCPU being non-NULL Sean Christopherson
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Sean Christopherson @ 2025-12-06  0:43 UTC (permalink / raw)
  To: Sean Christopherson, Paolo Bonzini, Vitaly Kuznetsov,
	David Woodhouse, Paul Durrant
  Cc: kvm, linux-kernel

Drop a bunch of _really_ old dead code (ASSERT() buried behind a DEBUG
macro that probably hasn't been enabled in 15+ years), clean up the bizarre
and confusing "dest_map" pointer that gets passed all of the place but is
only actually used for in-kernel RTC emulation, and the bury almost all of
ioapic.h behind CONFIG_KVM_IOAPIC=y.

I'm not entirely sure why I started poking at this.  I think I got mad at
the dest_map code, and then things snowballed...

Sean Christopherson (9):
  KVM: x86: Drop ASSERT()s on APIC/vCPU being non-NULL
  KVM: x86: Drop guest/user-triggerable asserts on IRR/ISR vectors
  KVM: x86: Drop ASSERT() on I/O APIC EOIs being only for LEVEL_to
    WARN_ON_ONCE
  KVM: x86: Drop guest-triggerable ASSERT()s on I/O APIC access
    alignment
  KVM: x86: Drop MAX_NR_RESERVED_IOAPIC_PINS, use KVM_MAX_IRQ_ROUTES
    directly
  KVM: x86: Add a wrapper to handle common case of IRQ delivery without
    dest_map
  KVM: x86: Fold "struct dest_map" into "struct rtc_status"
  KVM: x86: Bury ioapic.h definitions behind CONFIG_KVM_IOAPIC
  KVM: x86: Hide KVM_IRQCHIP_KERNEL behind CONFIG_KVM_IOAPIC=y

 arch/x86/include/asm/kvm_host.h |  2 +
 arch/x86/kvm/hyperv.c           |  2 +-
 arch/x86/kvm/ioapic.c           | 43 ++++++++-------------
 arch/x86/kvm/ioapic.h           | 38 ++++++-------------
 arch/x86/kvm/irq.c              |  4 +-
 arch/x86/kvm/lapic.c            | 66 ++++++++++++++++-----------------
 arch/x86/kvm/lapic.h            | 20 +++++++---
 arch/x86/kvm/x86.c              |  4 +-
 arch/x86/kvm/xen.c              |  2 +-
 9 files changed, 81 insertions(+), 100 deletions(-)


base-commit: 5d3e2d9ba9ed68576c70c127e4f7446d896f2af2
-- 
2.52.0.223.gf5cc29aaa4-goog


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-01-12 17:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-06  0:43 [PATCH 0/9] KVM: x86: APIC and I/O APIC cleanups Sean Christopherson
2025-12-06  0:43 ` [PATCH 1/9] KVM: x86: Drop ASSERT()s on APIC/vCPU being non-NULL Sean Christopherson
2025-12-06  0:43 ` [PATCH 2/9] KVM: x86: Drop guest/user-triggerable asserts on IRR/ISR vectors Sean Christopherson
2025-12-06  0:43 ` [PATCH 3/9] KVM: x86: Drop ASSERT() on I/O APIC EOIs being only for LEVEL_to WARN_ON_ONCE Sean Christopherson
2025-12-06  0:43 ` [PATCH 4/9] KVM: x86: Drop guest-triggerable ASSERT()s on I/O APIC access alignment Sean Christopherson
2025-12-06  0:43 ` [PATCH 5/9] KVM: x86: Drop MAX_NR_RESERVED_IOAPIC_PINS, use KVM_MAX_IRQ_ROUTES directly Sean Christopherson
2025-12-06  0:43 ` [PATCH 6/9] KVM: x86: Add a wrapper to handle common case of IRQ delivery without dest_map Sean Christopherson
2025-12-06  0:43 ` [PATCH 7/9] KVM: x86: Fold "struct dest_map" into "struct rtc_status" Sean Christopherson
2025-12-06  0:43 ` [PATCH 8/9] KVM: x86: Bury ioapic.h definitions behind CONFIG_KVM_IOAPIC Sean Christopherson
2025-12-06  0:43 ` [PATCH 9/9] KVM: x86: Hide KVM_IRQCHIP_KERNEL behind CONFIG_KVM_IOAPIC=y Sean Christopherson
2026-01-12 17:38 ` [PATCH 0/9] KVM: x86: APIC and I/O APIC cleanups Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®