Oliver Upton
03e560ab53
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 >
2024-04-25 13:19:56 +01:00
Oliver Upton
be26db61e8
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 >
2024-04-25 13:19:56 +01:00
Oliver Upton
1505bc70f8
KVM: selftests: Standardise layout of GIC frames
...
It would appear that all of the selftests are using the same exact
layout for the GIC frames. Fold this back into the library
implementation to avoid defining magic values all over the selftests.
This is an extension of Colton's change, ripping out parameterization of
from the library internals in addition to the public interfaces.
Co-developed-by: Colton Lewis <coltonlewis@google.com >
Signed-off-by: Colton Lewis <coltonlewis@google.com >
Signed-off-by: Oliver Upton <oliver.upton@linux.dev >
Link: https://lore.kernel.org/r/20240422200158.2606761-15-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org >
2024-04-25 13:19:56 +01:00
Ricardo Koller
e95def3a90
KVM: selftests: aarch64: Add vGIC library functions to deal with vIRQ state
...
Add a set of library functions for userspace code in selftests to deal
with vIRQ state (i.e., ioctl wrappers).
Signed-off-by: Ricardo Koller <ricarkol@google.com >
Acked-by: Andrew Jones <drjones@redhat.com >
Signed-off-by: Marc Zyngier <maz@kernel.org >
Link: https://lore.kernel.org/r/20211109023906.1091208-6-ricarkol@google.com
2021-12-28 19:23:35 +00:00
Ricardo Koller
17ce617bf7
KVM: selftests: aarch64: Add GICv3 register accessor library functions
...
Add library functions for accessing GICv3 registers: DIR, PMR, CTLR,
ISACTIVER, ISPENDR.
Signed-off-by: Ricardo Koller <ricarkol@google.com >
Acked-by: Andrew Jones <drjones@redhat.com >
Signed-off-by: Marc Zyngier <maz@kernel.org >
Link: https://lore.kernel.org/r/20211109023906.1091208-4-ricarkol@google.com
2021-12-28 19:23:13 +00:00
Raghavendra Rao Ananta
28281652f9
KVM: arm64: selftests: Add basic GICv3 support
...
Add basic support for ARM Generic Interrupt Controller v3.
The support provides guests to setup interrupts.
The work is inspired from kvm-unit-tests and the kernel's
GIC driver (drivers/irqchip/irq-gic-v3.c).
Signed-off-by: Raghavendra Rao Ananta <rananta@google.com >
Reviewed-by: Andrew Jones <drjones@redhat.com >
Reviewed-by: Ricardo Koller <ricarkol@google.com >
Signed-off-by: Marc Zyngier <maz@kernel.org >
Link: https://lore.kernel.org/r/20211007233439.1826892-13-rananta@google.com
2021-10-17 11:17:21 +01:00