KVM: arm64: vgic-its: Maintain a translation cache per ITS
authorOliver Upton <oliver.upton@linux.dev>
Mon, 22 Apr 2024 20:01:47 +0000 (20:01 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 25 Apr 2024 12:19:55 +0000 (13:19 +0100)
commit8201d1028caa4fae88e222c4e8cf541fdf45b821
treebc83f5c5159755629b10a908bf9b920201805ed5
parentc09c8ab99a8afb24f6b4a6bc7c2767fec348ae81
KVM: arm64: vgic-its: Maintain a translation cache per ITS

Within the context of a single ITS, it is possible to use an xarray to
cache the device ID & event ID translation to a particular irq
descriptor. Take advantage of this to build a translation cache capable
of fitting all valid translations for a given ITS.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240422200158.2606761-9-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic/vgic-its.c
include/kvm/arm_vgic.h