Re: [PATCH 0/2] KVM: Fix dangling IRQ bypass on x86 and arm64

From: Sean Christopherson

Date: Thu Jan 15 2026 - 13:05:34 EST


On Tue, 13 Jan 2026 09:46:04 -0800, Sean Christopherson wrote:
> Fix three bugs in one, where KVM can incorrectly leave an IRQ configured
> for bypass after the associated irqfd is deassigned from the VM (if the VMM
> deassigns the irqfd while it's in bypass mode).
>
> Two of the bugs are recent-ish, one each in x86 and arm64. The x86 bug is
> the most visible/noisy as it leads to kernel panics on AMD due to SVM's use
> of a per-CPU list to track IRQs/irqfds that are being posted to the vCPU.
>
> [...]

Applied rather quickly to kvm-x86 fixes, so that these can get as much time in
-next as possible. I'll wait until next week to send a pull request (hooray
for -rc8), and these are sitting at the top of the branch so I can amend (or
drop) them as needed.

[1/2] KVM: Don't clobber irqfd routing type when deassigning irqfd
https://github.com/kvm-x86/linux/commit/b4d37cdb77a0
[2/2] KVM: x86: Assert that non-MSI doesn't have bypass vCPU when deleting producer
https://github.com/kvm-x86/linux/commit/ef3719e33e66

--
https://github.com/kvm-x86/linux/tree/next