Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2id8-0007qz-8q for qemu-devel@nongnu.org; Fri, 16 Apr 2010 06:18:34 -0400 Received: from [140.186.70.92] (port=49556 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2id3-0007oF-RQ for qemu-devel@nongnu.org; Fri, 16 Apr 2010 06:18:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2id1-0004jg-HV for qemu-devel@nongnu.org; Fri, 16 Apr 2010 06:18:29 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:48151 helo=mx01.colomx.prod.int.phx2.redhat.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2icz-0004i6-Ho for qemu-devel@nongnu.org; Fri, 16 Apr 2010 06:18:27 -0400 Date: Fri, 16 Apr 2010 06:18:19 -0400 (EDT) From: Paolo Bonzini Message-ID: <690188359.186761271413099506.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> In-Reply-To: <4BC81986.4060904@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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: Gerd Hoffmann Cc: Blue Swirl , qemu-devel@nongnu.org, rth@twiddle.net > > 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. Paolo