Re: [PATCH v5 00/21] KVM: selftests: Link with VFIO selftests lib and test device interrupts
From: Sean Christopherson
Date: Thu Jun 04 2026 - 16:27:49 EST
On Thu, Jun 04, 2026, Josh Hilke wrote:
> This is v5 of a series which introduces tools/testing/selftests/kvm/irq_test.c
> in KVM selftests. This test exercises the delivery of interrupts (both
> emulated via eventfd and real from a VFIO device) to guest vCPUs. Beyond basic
> injection, the series adds coverage for several complex scenarios, including:
> - Dynamic updates to KVM's GSI routing table while interrupts are active.
> - Waking up halted vCPUs via interrupts.
> - Stressing interrupt delivery during random host IRQ affinity changes.
> - Stressing interrupt delivery during random vCPU thread migration across
> physical CPUs.
> - Testing non-postable interrupt remapping (using NMIs to force transitions).
> - Supporting both xAPIC and x2APIC modes in the guest.
>
> The series also links the VFIO selftests library into KVM selftests to enable
> testing of VFIO-KVM interactions.
Lots of comments and changes. I'll send a v6 (maybe later today, but probably
tomorrow). I have all the changes made locally, and the test is passing for me.