Skip to content

Commit fd09d25

Browse files
committed
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>
1 parent 59c3e06 commit fd09d25

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/x86/include/asm/kvm_host.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,9 @@ struct kvm_xen {
12221222

12231223
enum kvm_irqchip_mode {
12241224
KVM_IRQCHIP_NONE,
1225+
#ifdef CONFIG_KVM_IOAPIC
12251226
KVM_IRQCHIP_KERNEL, /* created with KVM_CREATE_IRQCHIP */
1227+
#endif
12261228
KVM_IRQCHIP_SPLIT, /* created with KVM_CAP_SPLIT_IRQCHIP */
12271229
};
12281230

0 commit comments

Comments
 (0)