Re: [PATCH] KVM: arm/arm64: vgic: Use READ_ONCE fo cmpxchg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 02, 2017 at 04:28:42PM +0200, Christoffer Dall wrote:
> There is a small chance that the compiler could generate separate loads
> for the dist->propbaser which could be modified from another CPU.  As we
> want to make sure we atomically update the entire value, and don't race
> with other updates, guarantee that the cmpxchg operation compares
> against the original value.
> 
> Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
> Signed-off-by: Christoffer Dall <cdall@xxxxxxxxxx>

FWIW:

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux