]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: selftests: Fall back to split IRQ chip if full in-kernel chip is unsupported
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 21:35:55 +0000 (14:35 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:52:51 +0000 (13:52 -0700)
commit8fd2a6d43a10184f8edcc7adc0547e1871df6705
tree0c656077e007797cc2db6bc256deffbcfc8b0dae
parent141db6cd79e2d71fce3049347177f98a233d8eb2
KVM: selftests: Fall back to split IRQ chip if full in-kernel chip is unsupported

Now that KVM x86 allows compiling out support for in-kernel I/O APIC (and
PIC and PIT) emulation, i.e. allows disabling KVM_CREATE_IRQCHIP for all
intents and purposes, fall back to a split IRQ chip for x86 if creating
the full in-kernel version fails with ENOTTY.

Acked-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20250611213557.294358-17-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/lib/kvm_util.c