From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9FuP-0003Ps-FF for qemu-devel@nongnu.org; Thu, 08 Jan 2015 11:26:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9FuM-0003yv-AN for qemu-devel@nongnu.org; Thu, 08 Jan 2015 11:26:05 -0500 Received: from [2001:41d0:8:2b42::1] (port=35501 helo=greensocs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9FuM-0003ya-1S for qemu-devel@nongnu.org; Thu, 08 Jan 2015 11:26:02 -0500 Message-ID: <54AEAF96.3050700@greensocs.com> Date: Thu, 08 Jan 2015 17:25:58 +0100 From: Frederic Konrad MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] goal of tb_lock in cpu-exec? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , mttcg@listserver.greensocs.com Cc: Peter Maydell Hi everybody and happy new year, I wondered what is the goal of tb_lock in cpu-exec.c. According to the exec-all.h it's to protect tbs and page table but why do we have to cover the whole cpu_exec function? I'm asking this because we planned to reuse tb_lock to protect every access to tb_ctx by replacing spinlock by QemuMutex. Anybody has a clue? Thanks, Fred