]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: WARN if IRQ bypass routing is updated without in-kernel local APIC
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:54 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:45 +0000 (09:50 -0700)
commit25ef059e8bc51219f18fb7444aff1907960a3a53
treec1bb35c5e43401247fbf0c61d941ea7e92e6b2fa
parentd1bccaa1793d8f823983824635933e4bdc752b64
KVM: x86: WARN if IRQ bypass routing is updated without in-kernel local APIC

Yell if kvm_pi_update_irte() is reached without an in-kernel local APIC,
as kvm_arch_irqfd_allowed() should prevent attaching an irqfd and thus any
and all postable IRQs to an APIC-less VM.

Link: https://lore.kernel.org/r/20250611224604.313496-53-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/irq.c