From: Keir Fraser Subject: Re: Linux questions Date: Mon, 03 Dec 2007 18:32:24 +0000 Message-ID: References: <4753F93C.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4753F93C.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Samuel Thibault Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 3/12/07 11:40, "Jan Beulich" wrote: >> rmb() is more powerful than barrier(), not the converse. > > Oh, sorry, I mixed barrier() with mb(). So the proposal would then simply > be the other way around (the use of locked operations or fence instructions > on x86 is really unnecessary as long as WC memory or non-temporal stores > don't need to be taken into consideration). Then the implementation of rmb() should be equivalent to barrier(). The code in time-xen.c is implemented to the interface definitions of barrier() and rmb() -- the former is used just where instruction ordering is important; the latter where dynamic execution order matters too. -- Keir