KVM: arm64: selftests: Add support for GICv2 on v3
authorMarc Zyngier <maz@kernel.org>
Thu, 14 Jul 2022 15:41:08 +0000 (16:41 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 15 Jul 2022 10:01:00 +0000 (11:01 +0100)
commit6a4f7fcd750497cb2fa870f799e8b23270bec6e3
treedf9e24521cfcf0dca9e018764e1ed9b4c0ce5514
parent1c3ace2b8b3995d3213c5e2d2aca01a0577a3b0f
KVM: arm64: selftests: Add support for GICv2 on v3

The current vgic_init test wrongly assumes that the host cannot
multiple versions of the GIC architecture, while v2 emulation
on v3 has almost always been supported (it was supported before
the standalone v3 emulation).

Tweak the test to support multiple GIC incarnations.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Fixes: 3f4db37e203b ("KVM: arm64: selftests: Make vgic_init gic version agnostic")
Reviewed-by: Ricardo Koller <ricarkol@google.com>
Link: https://lore.kernel.org/r/20220714154108.3531213-1-maz@kernel.org
tools/testing/selftests/kvm/aarch64/vgic_init.c