KVM: selftests: aarch64: Level-sensitive interrupts tests in vgic_irq
authorRicardo Koller <ricarkol@google.com>
Tue, 9 Nov 2021 02:39:00 +0000 (18:39 -0800)
committerMarc Zyngier <maz@kernel.org>
Tue, 28 Dec 2021 19:24:28 +0000 (19:24 +0000)
commit92f2cc4aa7964d4d13681eeb38582bb989b01b98
tree8ad1e3e1219e4f26982ac2f267fc497325b7766f
parent0ad3ff4a6adc4922808ef8b2f91880c25195f509
KVM: selftests: aarch64: Level-sensitive interrupts tests in vgic_irq

Add a cmdline arg for using level-sensitive interrupts (vs the default
edge-triggered). Then move the handler into a generic handler function
that takes the type of interrupt (level vs. edge) as an arg.  When
handling line-sensitive interrupts it sets the line to low after
acknowledging the IRQ.

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