]> 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)
commitb33bd03e7ba8ba63114253da4a8a47367b541c26
treee911f5beba5e173f4bb94224b42803ed34f0bd7e
parentef7352ce7e4af6370a2cc8c2b8449e8a7191bdc0
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