]> git.baikalelectronics.ru Git - kernel.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)
commit60d8f061fd7c5bcc69a41ca51bf14851a96d7ef8
tree9eee9632b944fa6456714fa3305fba6f00070c98
parent683d12ebd750c1de5b71610765c6ffc9dca4673c
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