OSDN Git Service

KVM: arm64: selftests: Add test for legacy GICv3 REDIST base partially above IPA...
authorRicardo Koller <ricarkol@google.com>
Tue, 5 Oct 2021 01:19:20 +0000 (18:19 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 11 Oct 2021 08:31:43 +0000 (09:31 +0100)
commit1883458638979531fc4fcbc26d15fec3e51e1734
tree0983650567937214ec7a13f55f6d7fb846f27f6d
parent2dcd9aa1c3a5d3c90047d67efd08f0518f915449
KVM: arm64: selftests: Add test for legacy GICv3 REDIST base partially above IPA range

Add a new test into vgic_init which checks that the first vcpu fails to
run if there is not sufficient REDIST space below the addressable IPA
range.  This only applies to the KVM_VGIC_V3_ADDR_TYPE_REDIST legacy API
as the required REDIST space is not know when setting the DIST region.

Note that using the REDIST_REGION API results in a different check at
first vcpu run: that the number of redist regions is enough for all
vcpus. And there is already a test for that case in, the first step of
test_v3_new_redist_regions.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211005011921.437353-11-ricarkol@google.com
tools/testing/selftests/kvm/aarch64/vgic_init.c