]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05d276e4a9ebfa67c9ba12c0b48fd6bb52a5962d
treedf9e24521cfcf0dca9e018764e1ed9b4c0ce5514
parent73cd27489688c3740ed987a9eb90779e5bb35ab0
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: a503bf078a7a ("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