From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxsK5-00041A-R7 for qemu-devel@nongnu.org; Sat, 22 Oct 2016 05:10:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxsK2-0005au-LH for qemu-devel@nongnu.org; Sat, 22 Oct 2016 05:10:37 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:53482) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bxsK2-0005ZQ-6t for qemu-devel@nongnu.org; Sat, 22 Oct 2016 05:10:34 -0400 Date: Sat, 22 Oct 2016 05:10:26 -0400 (EDT) From: Paolo Bonzini Message-ID: <1611296246.6153068.1477127426294.JavaMail.zimbra@redhat.com> In-Reply-To: <877f91fvqy.fsf@linaro.org> References: <1476107947-31430-1-git-send-email-pbonzini@redhat.com> <877f91fvqy.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/5] More thread sanitizer fixes and atomic.h improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex =?utf-8?Q?Benn=C3=A9e?= Cc: qemu-devel@nongnu.org, cota@braap.org ----- Original Message ----- > From: "Alex Benn=C3=A9e" > To: "Paolo Bonzini" > Cc: qemu-devel@nongnu.org, cota@braap.org > Sent: Friday, October 21, 2016 7:38:13 PM > Subject: Re: [PATCH 0/5] More thread sanitizer fixes and atomic.h improve= ments >=20 >=20 > Paolo Bonzini writes: >=20 > > See each patch. My attempt at fixing whatever I did when I obviously > > didn't know enough^W about the C11 memory model, and at setting a > > better example for future generations... >=20 > Are you posting a v2 of this? Alternatively I can slurp them into my > next patch set as I've got a whole bunch more tsan related fixes that > are not directly MTTCG related currently in my MTTCG tree: >=20 > https://github.com/stsquad/qemu/commits/mttcg/base-patches-v5 I'm posting a pull request early next week. Paolo > > > > Paolo Bonzini (5): > > atomic: introduce smp_mb_acquire and smp_mb_release > > cpus: use atomic_read to read seqlock-protected variables > > qemu-thread: use acquire/release to clarify semantics of QemuEvent > > rcu: simplify memory barriers > > atomic: base mb_read/mb_set on load-acquire and store-release > > > > cpus.c | 9 +-- > > docs/atomics.txt | 84 ++++++++++++++++------------ > > include/qemu/atomic.h | 139 > > ++++++++++++++++++++--------------------------- > > util/qemu-thread-posix.c | 15 ++++- > > util/qemu-thread-win32.c | 15 ++++- > > util/rcu.c | 11 ++-- > > 6 files changed, 143 insertions(+), 130 deletions(-) >=20 >=20 > -- > Alex Benn=C3=A9e >=20