summaryrefslogtreecommitdiff
path: root/virt/kvm/arm/vgic/vgic.h
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2016-08-03 16:03:44 (GMT)
committerChristoffer Dall <christoffer.dall@linaro.org>2016-08-15 21:00:20 (GMT)
commitd9ae449b3d14d7c55f69af329972f175d180e68d (patch)
treec9b04b65130b96654d275cb550568748a4087f08 /virt/kvm/arm/vgic/vgic.h
parent2cccbb368a2bf27d98cf36bb424fbbf5572c0fab (diff)
downloadlinux-d9ae449b3d14d7c55f69af329972f175d180e68d.tar.xz
KVM: arm64: vgic-its: Make updates to propbaser/pendbaser atomic
There are two problems with the current implementation of the MMIO handlers for the propbaser and pendbaser: First, the write to the value itself is not guaranteed to be an atomic 64-bit write so two concurrent writes to the structure field could be intermixed. Second, because we do a read-modify-update operation without any synchronization, if we have two 32-bit accesses to separate parts of the register, we can loose one of them. By using the atomic cmpxchg64 we should cover both issues above. Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic.h')
0 files changed, 0 insertions, 0 deletions