|
From: | Richard Henderson |
Subject: | [Qemu-devel] Re: [RfC PATCH 08/11] spice: add qxl device |
Date: | Fri, 16 Apr 2010 07:53:37 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 |
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~
[Prev in Thread] | Current Thread | [Next in Thread] |