KVM: arm/arm64: vgic: Return error on incompatible uaccess GICD_IIDR writes
authorChristoffer Dall <christoffer.dall@arm.com>
Mon, 16 Jul 2018 13:06:24 +0000 (15:06 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Sat, 21 Jul 2018 15:02:28 +0000 (16:02 +0100)
commitb489edc36169938e955c748eb83eb707bd53436e
tree8206bddd7cf6c7352f6dbd567521cec2ff56f71a
parentc6e0917b67fc006f3785b79bfdacdf9eef2f4816
KVM: arm/arm64: vgic: Return error on incompatible uaccess GICD_IIDR writes

If userspace attempts to write a GICD_IIDR that does not match the
kernel version, return an error to userspace.  The intention is to allow
implementation changes inside KVM while avoiding silently breaking
migration resulting in guests not running without any clear indication
of what went wrong.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-mmio-v2.c
virt/kvm/arm/vgic/vgic-mmio-v3.c