From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Bp0-0002em-FF for qemu-devel@nongnu.org; Wed, 17 Dec 2014 05:27:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y1Bov-0003h6-7D for qemu-devel@nongnu.org; Wed, 17 Dec 2014 05:27:10 -0500 Received: from [2001:41d0:8:2b42::1] (port=36737 helo=greensocs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y1Bou-0003ge-U1 for qemu-devel@nongnu.org; Wed, 17 Dec 2014 05:27:05 -0500 Message-ID: <54915A76.3000408@greensocs.com> Date: Wed, 17 Dec 2014 11:27:02 +0100 From: Frederic Konrad MIME-Version: 1.0 References: <1418721234-9588-1-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 PATCH] 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, Paolo Bonzini , Mark Burton , QEMU Developers , =?UTF-8?B?TGx1w61zIFZpbGFub3Zh?= On 16/12/2014 17:37, Peter Maydell wrote: > On 16 December 2014 at 09:13, wrote: >> From: KONRAD Frederic >> >> This adds a lock to avoid multiple exclusive access at the same time in case of >> TCG multithread. Hi Peter, > This feels to me like it's not really possible to review on > its own, since you can't see how it fits into the design of > the rest of the multithreading support. true the only thing we observe is that it didn't change anything right now. > The other approach here rather than having a pile of mutexes > in the target-* code would be to have TCG IR support for > "begin critical section"/"end critical section". Then you > could have the main loop ensure that no other CPU is running > at the same time as the critical-section code. (linux-user > already has an ad-hoc implementation of this for the > exclusives.) > > -- PMM > What do you mean by TCG IR? Thanks, Fred