From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YICQ2-0004RU-Q7 for qemu-devel@nongnu.org; Mon, 02 Feb 2015 03:31:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YICPz-0000zk-Kk for qemu-devel@nongnu.org; Mon, 02 Feb 2015 03:31:42 -0500 Received: from greensocs.com ([193.104.36.180]:46973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YICPy-0000yY-MK for qemu-devel@nongnu.org; Mon, 02 Feb 2015 03:31:39 -0500 Message-ID: <54CF35E6.8080903@greensocs.com> Date: Mon, 02 Feb 2015 09:31:34 +0100 From: Frederic Konrad MIME-Version: 1.0 References: <1421428797-23697-1-git-send-email-fred.konrad@greensocs.com> <1421428797-23697-2-git-send-email-fred.konrad@greensocs.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 01/10] target-arm: protect cpu_exclusive_*. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: mttcg@listserver.greensocs.com, "J. Kiszka" , Mark Burton , QEMU Developers , Alexander Graf , Paolo Bonzini On 29/01/2015 16:17, Peter Maydell wrote: > On 16 January 2015 at 17:19, wrote: >> From: KONRAD Frederic >> >> This adds a lock to avoid multiple exclusive access at the same time in case of >> TCG multithread. >> >> Signed-off-by: KONRAD Frederic Hi Peter, > All the same comments I had on this patch earlier still apply: > > * I think adding mutex handling code to all the target-* > frontends rather than providing facilities in common > code for them to use is the wrong approach Ok we will fix that. > * You will fail to unlock the mutex if the ldrex or strex > takes a data abort > * This is making no attempt to learn from or unify with > the existing attempts at handling exclusives in linux-user. > When we've done this work we should have a single > mechanism for handling exclusives in a multithreaded > host environment which is used by both softmmu and useronly > configs Can you point me to the existing attempts in linux-user? Thanks, Fred > > thanks > -- PMM