Received: from eggs.gnu.org ([2001:4830:134:3::10]:38637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btcjc-0003Na-Be for qemu-devel@nongnu.org; Mon, 10 Oct 2016 11:43:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btcjX-0007F0-O0 for qemu-devel@nongnu.org; Mon, 10 Oct 2016 11:43:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btcjX-0007En-EL for qemu-devel@nongnu.org; Mon, 10 Oct 2016 11:43:19 -0400 References: <1476107947-31430-1-git-send-email-pbonzini@redhat.com> <1476107947-31430-2-git-send-email-pbonzini@redhat.com> From: Eric Blake Message-ID: Date: Mon, 10 Oct 2016 10:29:17 -0500 MIME-Version: 1.0 In-Reply-To: <1476107947-31430-2-git-send-email-pbonzini@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XLeSQ2kDbQveTH8riJG21vIpFPkMfiQnS" Subject: Re: [Qemu-devel] [PATCH 1/5] atomic: introduce smp_mb_acquire and smp_mb_release List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: cota@braap.org, alex.bennee@linaro.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XLeSQ2kDbQveTH8riJG21vIpFPkMfiQnS From: Eric Blake To: Paolo Bonzini , qemu-devel@nongnu.org Cc: cota@braap.org, alex.bennee@linaro.org Message-ID: Subject: Re: [Qemu-devel] [PATCH 1/5] atomic: introduce smp_mb_acquire and smp_mb_release References: <1476107947-31430-1-git-send-email-pbonzini@redhat.com> <1476107947-31430-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1476107947-31430-2-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/10/2016 08:59 AM, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > docs/atomics.txt | 79 ++++++++++++++++++++++++++++++-------------= -------- > include/qemu/atomic.h | 50 +++++++++++++++++++------------- > 2 files changed, 77 insertions(+), 52 deletions(-) >=20 > =20 > +- smp_mb_acquire() guarantees that all the LOAD operations specified b= efore > + the barrier will appear to happen before all the LOAD or STORE opera= tions > + specified after the barrier with respect to the other components of > + the system. > + > +- smp_mb_release() guarantees that all the STORE operations specified = *after* > + the barrier will appear to happen before all the LOAD or STORE opera= tions Sounds impossible. Should this be 'will appear to happen after all'? > + specified *before* the barrier with respect to the other components = of > + the system. > + > - smp_mb() guarantees that all the LOAD and STORE operations specified= > before the barrier will appear to happen before all the LOAD and > STORE operations specified after the barrier with respect to the oth= er > @@ -149,8 +160,9 @@ They come in four kinds: --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --XLeSQ2kDbQveTH8riJG21vIpFPkMfiQnS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX+7PNAAoJEKeha0olJ0NqLU0IAK43NQnXRSsjZQdNXkTpWVsU 0/1nKJe/A4J0vagXiaex5IMB2iYMhRgneF2A2Ot0B+F8JebEYy7ztZLm5giB/17C hNbdPb0z9irax7BzNkkB8scDRh0CmkP5WcMf/SIUOS1hHof7KI+rGAQk+QzmtW5e ZeMx+0WoFdSpperuvWtti61rWrY1WMMXIshcu+XdaoMzAX982Tgn8OlEMaldESKF 3tM/HDZLmm2EZYhWaUSpCIYbBOHOnsJLQGHo35IBZxiIpiiG4PZJS4ARgTV5wJZL xBuloqJbrENcozcn5zu9I34YSJyNy2083VVGDDQ27HhMSw0IFSTV1ThkRq0pqYc= =Wf4J -----END PGP SIGNATURE----- --XLeSQ2kDbQveTH8riJG21vIpFPkMfiQnS--