Received: from eggs.gnu.org ([2001:4830:134:3::10]:38048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btb74-0001H1-QM for qemu-devel@nongnu.org; Mon, 10 Oct 2016 09:59:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btb6z-00086H-TL for qemu-devel@nongnu.org; Mon, 10 Oct 2016 09:59:29 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:34013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btb6z-00086B-PR for qemu-devel@nongnu.org; Mon, 10 Oct 2016 09:59:25 -0400 Received: by mail-qk0-x242.google.com with SMTP id n189so6872426qke.1 for ; Mon, 10 Oct 2016 06:59:25 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Mon, 10 Oct 2016 15:59:02 +0200 Message-Id: <1476107947-31430-1-git-send-email-pbonzini@redhat.com> Subject: [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: qemu-devel@nongnu.org Cc: cota@braap.org, alex.bennee@linaro.org 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... 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(-) -- 2.7.4