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

Re: [Xen-devel] [PATCH] libvchan: interdomain communications library

At 14:52 -0400 on 24 Aug (1314197572), Daniel De Graaf wrote:
> Agreed, barriers are needed for a robust implementation. Since this is
> a shared library and not xen or kernel code, the existing barrier()/wmb()
> functions are not available. The only existing implementations in Xen
> appear to expand to asm("":::"memory") which does not actually implement
> a memory barrier (i.e. MFENCE or similar opcodes).

AIUI on x86_64, writes are guaranteed to be seen in order so the only
thing that barrier has to protect against is the compiler reordering the


Tim Deegan <tim@xxxxxxx>
Principal Software Engineer, Xen Platform Team
Citrix Systems UK Ltd.  (Company #02937203, SL9 0BG)

Xen-devel mailing list



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