Re: [PATCH] KVM: x86: WARN and fail kvm_set_irq() if a PIC or I/O APIC vector is invalid

From: Huang, Kai

Date: Fri Jun 19 2026 - 03:35:53 EST


On Thu, 2026-06-18 at 11:52 -0700, Sean Christopherson wrote:
> 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@xxxxxxxxxx>
>

Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>