]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit531994d107c8fdd31ce9aac5e51b3514863ba5eb
tree8206bddd7cf6c7352f6dbd567521cec2ff56f71a
parent93ce7db2e1154ed001af1aae6c30c8853222d5e8
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