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

Re: [Xen-devel] [PATCH v2 6/6] x86/time: relax barriers



On 03/08/16 14:04, Jan Beulich wrote:
> On x86 there's no need for full barriers in loops waiting for some
> memory location to change. Nor do we need full barriers between two
> reads and two writes - SMP ones fully suffice (and I actually think
> they could in fact be dropped, since atomic_*() operations should
> already provide enough ordering).

Missing a SoB,

Which "ones" are you referring to?  atomic_*() is only ordered with
respect to the atomic_t used.

Overall, I think the change is correct, so Reviewed-by: Andrew Cooper
<andrew.cooper3@xxxxxxxxxx>

There are definitely more mis-uses of mandatory barriers in Xen,
although I haven't done a full audit yet.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.