]> git.baikalelectronics.ru Git - kernel.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)
commit03b07bafb4f1e3793855dad07d4e0e194837280d
treee56e3df3084d1cdf41a475259c0456719c7af954
parent8f34ae97b9e85df29cd0fe8f335569af1b2f2e4a
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