OSDN Git Service

KVM: arm64: selftests: Add some tests for GICv2 in vgic_init
authorRicardo Koller <ricarkol@google.com>
Tue, 5 Oct 2021 01:19:18 +0000 (18:19 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 11 Oct 2021 08:31:42 +0000 (09:31 +0100)
commitc44df5f9ff31daaa72b3a673422d5cca03a1fd02
tree7f267c4f89a7ccbf6d169c14cf40063656826bb0
parent46fb941bc04d3541776c09c2bf641e7f34e62a01
KVM: arm64: selftests: Add some tests for GICv2 in vgic_init

Add some GICv2 tests: general KVM device tests and DIST/CPUIF overlap
tests.  Do this by making test_vcpus_then_vgic and test_vgic_then_vcpus
in vgic_init GIC version agnostic.

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