From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:32881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWDng-0002ed-Nb for qemu-devel@nongnu.org; Sun, 20 May 2012 17:36:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWDnf-0003JI-2H for qemu-devel@nongnu.org; Sun, 20 May 2012 17:36:28 -0400 Received: from gate.crashing.org ([63.228.1.57]:58499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWDne-0003J9-Px for qemu-devel@nongnu.org; Sun, 20 May 2012 17:36:26 -0400 Message-ID: <1337549768.2458.0.camel@pasglop> From: Benjamin Herrenschmidt Date: Mon, 21 May 2012 07:36:08 +1000 In-Reply-To: <4FB74AB0.7090608@redhat.com> References: <1336625347-10169-1-git-send-email-benh@kernel.crashing.org> <1336625347-10169-14-git-send-email-benh@kernel.crashing.org> <4FB1A8BF.7060503@codemonkey.ws> <20120515014449.GF30229@truffala.fritz.box> <1337142938.6727.122.camel@pasglop> <4FB4028F.7070003@codemonkey.ws> <1337213257.30558.22.camel@pasglop> <1337214293.30558.25.camel@pasglop> <4FB5F1FD.9020009@redhat.com> <1337329136.2513.7.camel@pasglop> <4FB60EFF.6070205@redhat.com> <1337379992.2513.17.camel@pasglop> <4FB74AB0.7090608@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 13/13] iommu: Add a memory barrier to DMA RW function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, Anthony Liguori , David Gibson On Sat, 2012-05-19 at 09:24 +0200, Paolo Bonzini wrote: > I guess the C11/C++ guys required an isync barrier after either loads or > stores, because they need to order the load/store vs. code accessing > other memory. This is not needed in QEMU because all guest accesses go > through cpu_physical_memory_rw (or has its own barriers). I am not sure, I don't quite see what it buys them really. I'd have to ask Paul McKenney, he probably knows :-) Cheers, Ben.