4 messages in com.xensource.lists.xen-devel[Xen-devel] [PATCH] Cleanup rmb()/wmb...
FromSent OnAttachments
Anthony Liguori22 Feb 2005 19:38.diff
Keir Fraser22 Feb 2005 23:17 
Anthony Liguori22 Feb 2005 23:57 
Keir Fraser23 Feb 2005 00:43 
Subject:[Xen-devel] [PATCH] Cleanup rmb()/wmb() usage
From:Anthony Liguori (alig@us.ibm.com)
Date:02/22/2005 07:38:31 PM
List:com.xensource.lists.xen-devel
Attachments:

This is a pretty simple patch to use the read/write barriers defined in asm/system.h instead of using hardcoded versions in various places throughout Xen.

I've checked and using asm/system.h generates the same code on my system. I also tested xcs and it seems to work fine. I haven't tested blktap but again, it's generating the same code.

Right now, wmb() is defined as a NOP on any 386 architecture. Some Intel clones require a non-NOP wmb(). Using asm/system.h ensures we do the right thing.

It's against xen-unstable as of today.