From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2l3S-0006O5-Gd for qemu-devel@nongnu.org; Fri, 16 Apr 2010 08:53:54 -0400 Received: from [140.186.70.92] (port=57490 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2l3R-0006Nb-Ad for qemu-devel@nongnu.org; Fri, 16 Apr 2010 08:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2l3Q-0003xt-AC for qemu-devel@nongnu.org; Fri, 16 Apr 2010 08:53:53 -0400 Received: from mail-gw0-f45.google.com ([74.125.83.45]:47562) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2l3Q-0003xp-7b for qemu-devel@nongnu.org; Fri, 16 Apr 2010 08:53:52 -0400 Received: by gwj21 with SMTP id 21so1288666gwj.4 for ; Fri, 16 Apr 2010 05:53:51 -0700 (PDT) Sender: Richard Henderson Message-ID: <4BC85DD1.4070700@twiddle.net> Date: Fri, 16 Apr 2010 07:53:37 -0500 From: Richard Henderson MIME-Version: 1.0 References: <690188359.186761271413099506.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> In-Reply-To: <690188359.186761271413099506.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Blue Swirl , Gerd Hoffmann , qemu-devel@nongnu.org On 04/16/2010 05:18 AM, Paolo Bonzini wrote: >>> I'd just use __sync_fetch_and_or here. >> >> Good idea. I think we can zap the memory barrier and fix a small race >> while being at it, see the incremental fix below. > > Not sure about the memory barrier semantics of __sync_* (rth?), but > besides that the patch seems like a good idea. > The semantics of __sync_*, with only 2 exceptions, is full barrier. r~