KVM: selftests: Add helper for enabling LPIs on a redistributor
authorOliver Upton <oliver.upton@linux.dev>
Mon, 22 Apr 2024 20:01:56 +0000 (20:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 25 Apr 2024 12:19:56 +0000 (13:19 +0100)
commit03e560ab539009856266b0cf8c100c9f7d1f8fee
treef18da5a33ceec695e22e845a902ea94d7035d720
parentbe26db61e880b3892f189e9ef54b7b80599245bf
KVM: selftests: Add helper for enabling LPIs on a redistributor

The selftests GIC library presently does not support LPIs. Add a
userspace helper for configuring a redistributor for LPIs, installing
an LPI configuration table and LPI pending table.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240422200158.2606761-18-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
tools/testing/selftests/kvm/include/aarch64/gic.h
tools/testing/selftests/kvm/lib/aarch64/gic_v3.c
tools/testing/selftests/kvm/lib/aarch64/vgic.c