Received: from eggs.gnu.org ([2001:4830:134:3::10]:50180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ7kl-0000NQ-Vt for qemu-devel@nongnu.org; Fri, 01 Jul 2016 19:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJ7ki-0004no-Q2 for qemu-devel@nongnu.org; Fri, 01 Jul 2016 19:21:43 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:34421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJ7ki-0004ni-LS for qemu-devel@nongnu.org; Fri, 01 Jul 2016 19:21:40 -0400 Received: by mail-qk0-x241.google.com with SMTP id j2so26710496qkf.1 for ; Fri, 01 Jul 2016 16:21:40 -0700 (PDT) Sender: Richard Henderson References: <1464986428-6739-1-git-send-email-alex.bennee@linaro.org> <1464986428-6739-4-git-send-email-alex.bennee@linaro.org> From: Richard Henderson Message-ID: <79a5c68a-b547-cac3-8527-eac4b897c888@twiddle.net> Date: Fri, 1 Jul 2016 16:21:36 -0700 MIME-Version: 1.0 In-Reply-To: <1464986428-6739-4-git-send-email-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC v3 03/19] translate-all: add DEBUG_LOCKING asserts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , mttcg@greensocs.com, qemu-devel@nongnu.org, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, serge.fdrv@gmail.com, cota@braap.org, bobby.prani@gmail.com Cc: mark.burton@greensocs.com, pbonzini@redhat.com, jan.kiszka@siemens.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, Blue Swirl , Peter Crosthwaite , Riku Voipio On 06/03/2016 01:40 PM, Alex Bennée wrote: > This adds asserts to check the locking on the various translation > engines structures. There are two sets of structures that are protected > by locks. > > The first the l1map and PageDesc structures used to track which > translation blocks are associated with which physical addresses. In > user-mode this is covered by the mmap_lock. > > The second case are TB context related structures which are protected by > tb_lock which is also user-mode only. > > Currently the asserts do nothing in SoftMMU mode but this will change > for MTTCG. > > Signed-off-by: Alex Bennée > --- > bsd-user/mmap.c | 5 +++++ > include/exec/exec-all.h | 1 + > linux-user/mmap.c | 5 +++++ > translate-all.c | 41 +++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 52 insertions(+) Reviewed-by: Richard Henderson r~