diff options
author | Marc Zyngier <maz@kernel.org> | 2019-03-18 06:13:01 -0400 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2019-08-18 13:38:35 -0400 |
commit | 24cab82c34aa6f3ede3de1d8621624cb5ef33feb (patch) | |
tree | f56c1700b1a3b4b1637b2fea506eec8df94910fa /include/kvm | |
parent | d45331b00ddb179e291766617259261c112db872 (diff) |
KVM: arm/arm64: vgic: Add LPI translation cache definition
Add the basic data structure that expresses an MSI to LPI
translation as well as the allocation/release hooks.
The size of the cache is arbitrarily defined as 16*nr_vcpus.
Tested-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_vgic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index 7a30524a80ee..ded50a30e2d5 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h | |||
@@ -249,6 +249,9 @@ struct vgic_dist { | |||
249 | struct list_head lpi_list_head; | 249 | struct list_head lpi_list_head; |
250 | int lpi_list_count; | 250 | int lpi_list_count; |
251 | 251 | ||
252 | /* LPI translation cache */ | ||
253 | struct list_head lpi_translation_cache; | ||
254 | |||
252 | /* used by vgic-debug */ | 255 | /* used by vgic-debug */ |
253 | struct vgic_state_iter *iter; | 256 | struct vgic_state_iter *iter; |
254 | 257 | ||