KVM: selftests: aarch64: Add preemption tests in vgic_irq
authorRicardo Koller <ricarkol@google.com>
Tue, 9 Nov 2021 02:38:59 +0000 (18:38 -0800)
committerMarc Zyngier <maz@kernel.org>
Tue, 28 Dec 2021 19:24:22 +0000 (19:24 +0000)
commit0ad3ff4a6adc4922808ef8b2f91880c25195f509
treea037f7a3f5a9889b6369bffa0fc66225611ee39f
parent8a35b2877d9a15fa885cea744f1e578e035856fe
KVM: selftests: aarch64: Add preemption tests in vgic_irq

Add tests for IRQ preemption (having more than one activated IRQ at the
same time).  This test injects multiple concurrent IRQs and handles them
without handling the actual exceptions.  This is done by masking
interrupts for the whole test.

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-11-ricarkol@google.com
tools/testing/selftests/kvm/aarch64/vgic_irq.c