]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: arm64: vgic-its: Device table save/restore
authorEric Auger <eric.auger@redhat.com>
Mon, 9 Jan 2017 15:27:07 +0000 (16:27 +0100)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:38:45 +0000 (14:38 +0200)
commit57a9a117154c93539e33161dd318e6aeb8c04efa
tree9eee9632b944fa6456714fa3305fba6f00070c98
parentdceff7025851405412e1a180ddd0cf79c7cbc1d8
KVM: arm64: vgic-its: Device table save/restore

This patch saves the device table entries into guest RAM.
Both flat table and 2 stage tables are supported. DeviceId
indexing is used.

For each device listed in the device table, we also save
the translation table using the vgic_its_save/restore_itt
routines. Those functions will be implemented in a subsequent
patch.

On restore, devices are re-allocated and their itt are
re-built.

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