From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqPLf-0004dZ-P8 for qemu-devel@nongnu.org; Thu, 07 May 2015 13:12:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqPLb-0005E5-4e for qemu-devel@nongnu.org; Thu, 07 May 2015 13:12:35 -0400 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:36433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqPLb-0005E1-1K for qemu-devel@nongnu.org; Thu, 07 May 2015 13:12:31 -0400 Received: by qcbgy10 with SMTP id gy10so24478676qcb.3 for ; Thu, 07 May 2015 10:12:30 -0700 (PDT) Sender: Richard Henderson Message-ID: <554B9CF9.7040707@twiddle.net> Date: Thu, 07 May 2015 10:12:25 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1430926687-25875-1-git-send-email-a.rigo@virtualopensystems.com> <1430926687-25875-2-git-send-email-a.rigo@virtualopensystems.com> In-Reply-To: <1430926687-25875-2-git-send-email-a.rigo@virtualopensystems.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 1/5] exec: Add new exclusive bitmap to ram_list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alvise Rigo , qemu-devel@nongnu.org Cc: mttcg@greensocs.com, jani.kokkonen@huawei.com, tech@virtualopensystems.com, claudio.fontana@huawei.com On 05/06/2015 08:38 AM, Alvise Rigo wrote: > The purpose of this new bitmap is to flag the memory pages that are in > the middle of LL/SC operations (after a LL, before a SC). > For all these pages, the corresponding TLB entries will be generated > in such a way to force the slow-path. > > The accessors to this bitmap are currently not atomic, but they have to > be so in a real multi-threading TCG. > > Suggested-by: Jani Kokkonen > Suggested-by: Claudio Fontana > Signed-off-by: Alvise Rigo > --- > include/exec/cpu-defs.h | 2 ++ > include/exec/memory.h | 3 ++- > include/exec/ram_addr.h | 19 ++++++++++++++++++- > 3 files changed, 22 insertions(+), 2 deletions(-) > > diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h > index 0ca6f0b..d12cb4c 100644 > --- a/include/exec/cpu-defs.h > +++ b/include/exec/cpu-defs.h > @@ -123,5 +123,7 @@ QEMU_BUILD_BUG_ON(sizeof(CPUTLBEntry) != (1 << CPU_TLB_ENTRY_BITS)); > #define CPU_COMMON \ > /* soft mmu support */ \ > CPU_COMMON_TLB \ > + /* true if in the middle of a LoadLink/StoreConditional */ \ > + bool ll_sc_context; \ Belongs to a different patch? r~