]> 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)
commitff4d9996098eea8a24411f14e87970839cf12a8b
treee56e3df3084d1cdf41a475259c0456719c7af954
parent47b1e333b60a3d8cfbce83c8396299f6a92b270c
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