From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzMyW-0004eE-1u for qemu-devel@nongnu.org; Fri, 02 Sep 2011 02:11:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzMyU-0005CO-OT for qemu-devel@nongnu.org; Fri, 02 Sep 2011 02:11:36 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:64305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzMyU-0005CF-IN for qemu-devel@nongnu.org; Fri, 02 Sep 2011 02:11:34 -0400 Received: by wyf22 with SMTP id 22so2263701wyf.4 for ; Thu, 01 Sep 2011 23:11:33 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4E607391.9070804@redhat.com> Date: Fri, 02 Sep 2011 08:11:29 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1314857389-13363-1-git-send-email-david@gibson.dropbear.id.au> <20110901153020.GB10989@redhat.com> <4E5FAF6A.70205@redhat.com> <20110902001128.GN11906@yookeroo.fritz.box> In-Reply-To: <20110902001128.GN11906@yookeroo.fritz.box> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] virtio: Make memory barriers be memory barriers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , aliguori@us.ibm.com, aik@ozlabs.ru, rusty@rustcorp.com.au, qemu-devel@nongnu.org, agraf@suse.de On 09/02/2011 02:11 AM, David Gibson wrote: >>> > >Why not limit the change to ppc then? >> > >> > Because the bug is masked by the x86 memory model, but it is still >> > there even there conceptually. It is not really true that x86 does >> > not need memory barriers, though it doesn't in this case: >> > >> > http://bartoszmilewski.wordpress.com/2008/11/05/who-ordered-memory-fences-on-an-x86/ > Not to mention that pcc is not the only non-x86 architecture. I don't > know all their storage models off hand, but the point is that there is > a required order to these writes, so there should be a memory barrier. Indeed, I interpreted Michael's question more as "why not limit the change to non-x86". I think we should cater to all memory models except perhaps the Alpha's. Paolo