KVM: selftests: Add a minimal library for interacting with an ITS
authorOliver Upton <oliver.upton@linux.dev>
Mon, 22 Apr 2024 20:01:55 +0000 (20:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 25 Apr 2024 12:19:56 +0000 (13:19 +0100)
commitbe26db61e880b3892f189e9ef54b7b80599245bf
tree7e37534541b44e168154b9c62ea3fd8ea3421cdb
parent232269eb7dd5242877abfab1d47a1eb049a44b95
KVM: selftests: Add a minimal library for interacting with an ITS

A prerequisite of testing LPI injection performance is of course
instantiating an ITS for the guest. Add a small library for creating an
ITS and interacting with it from the guest.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240422200158.2606761-17-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/include/aarch64/gic.h
tools/testing/selftests/kvm/include/aarch64/gic_v3_its.h [new file with mode: 0644]
tools/testing/selftests/kvm/include/aarch64/vgic.h
tools/testing/selftests/kvm/lib/aarch64/gic_v3_its.c [new file with mode: 0644]
tools/testing/selftests/kvm/lib/aarch64/vgic.c