]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: WARN and fail kvm_set_irq() if a PIC or I/O APIC vector is invalid
authorSean Christopherson <seanjc@google.com>
Thu, 18 Jun 2026 18:52:13 +0000 (11:52 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Jun 2026 09:53:36 +0000 (11:53 +0200)
commitea3c9959213641cbcf53add220d3213f16042419
treebe053078fb39625e8906d131f43f5cc84ccf624c
parentac604b56115d9936a0876da46033b110cfab7f58
KVM: x86: WARN and fail kvm_set_irq() if a PIC or I/O APIC vector is invalid

WARN and return an error up the stack if the PIC or I/O APIC encounters an
invalid vector when injecting an IRQ, as there is no danger to the host and
thus no justification for potentially panicking the kernel.  Don't bug the
VM either, as the risk of corrupting the guest is minuscule, and the guest
might even be completely tolerant of a lost interrupt.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Kai Huang <kai.huang@intel.com>
Message-ID: <20260618185213.2019937-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/i8259.c
arch/x86/kvm/ioapic.c