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>
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm



[Index of Archives]     [Linux KVM]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux