]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb15925d05c49b08c709059ffab6b329c471714a
treee911f5beba5e173f4bb94224b42803ed34f0bd7e
parent7f00199c5f426b3ef5d23ffa5b257131ecbf355f
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