KVM: arm64: vgic-its: Collection table save/restore
authorEric Auger <eric.auger@redhat.com>
Mon, 9 Jan 2017 15:19:41 +0000 (16:19 +0100)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:38:23 +0000 (14:38 +0200)
commitea1ad53e1e31a32dcbeae61b8d3d01cccedcffc5
treee911f5beba5e173f4bb94224b42803ed34f0bd7e
parent920a7a8fa92ae0ec73c4f6d6f15c01f86017f20d
KVM: arm64: vgic-its: Collection table save/restore

The save path copies the collection entries into guest RAM
at the GPA specified in the BASER register. This obviously
requires the BASER to be set. The last written element is a
dummy collection table entry.

We do not index by collection ID as the collection entry
can fit into 8 bytes while containing the collection ID.

On restore path we re-allocate the collection objects.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-its.c
virt/kvm/arm/vgic/vgic.h