]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: arm64: vgic-its: Implement vgic_mmio_uaccess_write_its_iidr
authorEric Auger <eric.auger@redhat.com>
Thu, 23 Mar 2017 14:14:00 +0000 (15:14 +0100)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:35:16 +0000 (14:35 +0200)
commitab01c6bdacc43c41c6b326889f4358f5afc38bf9
treee56e3df3084d1cdf41a475259c0456719c7af954
parent71afe470e20db133b30730cfa856e5d6854312e9
KVM: arm64: vgic-its: Implement vgic_mmio_uaccess_write_its_iidr

The GITS_IIDR revision field is used to encode the migration ABI
revision. So we need to restore it to check the table layout is
readable by the destination.

By writing the IIDR, userspace thus forces the ABI revision to be
used and this must be less than or equal to the max revision KVM
supports.

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