KVM: selftests: aarch64: Cmdline arg to set number of IRQs in vgic_irq test
authorRicardo Koller <ricarkol@google.com>
Tue, 9 Nov 2021 02:38:57 +0000 (18:38 -0800)
committerMarc Zyngier <maz@kernel.org>
Tue, 28 Dec 2021 19:24:06 +0000 (19:24 +0000)
commite5410ee2806d74a749fa39ca6fdb73be2f88611f
treeae9cd9cfb1d3b0dc3d8134e3fb8c3243baf2c901
parente1cb399eed1eda29568b17bdb75d16cee1fc3da4
KVM: selftests: aarch64: Cmdline arg to set number of IRQs in vgic_irq test

Add the ability to specify the number of vIRQs exposed by KVM (arg
defaults to 64). Then extend the KVM_IRQ_LINE test by injecting all
available SPIs at once (specified by the nr-irqs arg). As a bonus,
inject all SGIs at once as well.

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-9-ricarkol@google.com
tools/testing/selftests/kvm/aarch64/arch_timer.c
tools/testing/selftests/kvm/aarch64/vgic_irq.c
tools/testing/selftests/kvm/include/aarch64/vgic.h
tools/testing/selftests/kvm/lib/aarch64/vgic.c