KVM: selftests: aarch64: Add vgic_irq to test userspace IRQ injection
authorRicardo Koller <ricarkol@google.com>
Tue, 9 Nov 2021 02:38:55 +0000 (18:38 -0800)
committerMarc Zyngier <maz@kernel.org>
Tue, 28 Dec 2021 19:23:43 +0000 (19:23 +0000)
commit50b020cdb7f72077e16133f1d88c9359cf415a53
tree696e6852fc347ab20361bbb6ea13c4c144b7dcbc
parente95def3a904dea467309bbe382a9032d301ba9cd
KVM: selftests: aarch64: Add vgic_irq to test userspace IRQ injection

Add a new KVM selftest, vgic_irq, for testing userspace IRQ injection.  This
particular test injects an SPI using KVM_IRQ_LINE on GICv3 and verifies
that the IRQ is handled in the guest. The next commits will add more
types of IRQs and different modes.

Signed-off-by: Ricardo Koller <ricarkol@google.com>
Acked-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211109023906.1091208-7-ricarkol@google.com
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/aarch64/vgic_irq.c [new file with mode: 0644]