[PATCH v2 15/16] KVM: selftests: Add VGICv5 ITS translation cache tests

Fuad Tabba fuad.tabba at linux.dev
Tue Nov 3 08:02:03 PST 2026


On Mon, 02 Nov 2026 19:44:53 +0000, Sascha Bischoff
<sascha.bischoff at arm.com> wrote:
[...]
> Also cover negative MSI paths by checking that KVM_SIGNAL_MSI rejects a
> message without KVM_MSI_VALID_DEVID and rejects a message whose address
> does not target the GICv5 ITS. Finally, inject once before guest-side
> ITS disable to prove delivery still works, then have VPE0 disable the
> ITS and verify that a cached KVM_SIGNAL_MSI delivery is rejected with
> ENXIO.

The MSI just before the disable is expected to be blocked (IDR1 is
narrowed), and the disabled check runs before any cache lookup, so the
final ENXIO doesn't test the cache. Could the test restore IDR1 and
deliver an MSI first, and the message describe what the last step
checks? (Sashiko [1])

Thanks!
/fuad

[1] https://lore.kernel.org/all/sashiko-outbox-194181@kernel.org/



More information about the linux-arm-kernel mailing list