]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: Drop MAX_NR_RESERVED_IOAPIC_PINS, use KVM_MAX_IRQ_ROUTES directly
authorSean Christopherson <seanjc@google.com>
Sat, 6 Dec 2025 00:43:07 +0000 (16:43 -0800)
committerSean Christopherson <seanjc@google.com>
Mon, 12 Jan 2026 17:31:39 +0000 (09:31 -0800)
commit4d846f183897606ba5e9c76494d19acbe1ba88f9
tree85f0d3194f20deb427b2e2ecf2eea8be21d03c86
parent9eabb2a5e499ec3e5a013157844335a487c7cb5e
KVM: x86: Drop MAX_NR_RESERVED_IOAPIC_PINS, use KVM_MAX_IRQ_ROUTES directly

Directly use KVM_MAX_IRQ_ROUTES when checking the number of routes being
defined by userspace when creating a split IRQCHIP.  The restriction has
nothing to do with the I/O APIC, e.g. most modern userspace usage is for
routing MSIs.  Breaking the unnecessary dependency on the I/O APIC will
allow burying all of ioapic.h behind CONFIG_KVM_IOAPIC=y.

No functional change intended.

Link: https://patch.msgid.link/20251206004311.479939-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/ioapic.h
arch/x86/kvm/x86.c