KVM: x86: Hide KVM_IRQCHIP_KERNEL behind CONFIG_KVM_IOAPIC=y

JIRA: https://issues.redhat.com/browse/RHEL-151869

commit fd09d259c161086849774f9261cab16c58ba7dff
Author: Sean Christopherson <seanjc@google.com>
Date:   Fri Dec 5 16:43:11 2025 -0800

    KVM: x86: Hide KVM_IRQCHIP_KERNEL behind CONFIG_KVM_IOAPIC=y

    Enumerate KVM_IRQCHIP_KERNEL if and only if support for an in-kernel I/O
    APIC is enabled, as all usage is likewise guarded by CONFIG_KVM_IOAPIC=y.

    Link: https://patch.msgid.link/20251206004311.479939-10-seanjc@google.com
    Signed-off-by: Sean Christopherson <seanjc@google.com>

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
This commit is contained in:
Maxim Levitsky
2026-07-21 14:11:53 -04:00
parent e7b157756a
commit da3b60582d
+2
View File
@@ -1226,7 +1226,9 @@ struct kvm_xen {
enum kvm_irqchip_mode {
KVM_IRQCHIP_NONE,
#ifdef CONFIG_KVM_IOAPIC
KVM_IRQCHIP_KERNEL, /* created with KVM_CREATE_IRQCHIP */
#endif
KVM_IRQCHIP_SPLIT, /* created with KVM_CAP_SPLIT_IRQCHIP */
};