From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhcC-0004ko-Gz for qemu-devel@nongnu.org; Thu, 15 Jan 2015 05:25:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBhc8-000655-EA for qemu-devel@nongnu.org; Thu, 15 Jan 2015 05:25:24 -0500 Received: from [2001:41d0:8:2b42::1] (port=47786 helo=greensocs.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBhc8-00064r-7b for qemu-devel@nongnu.org; Thu, 15 Jan 2015 05:25:20 -0500 Message-ID: <54B7958D.2040108@greensocs.com> Date: Thu, 15 Jan 2015 11:25:17 +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] global_mutex and multithread. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mttcg@listserver.greensocs.com, qemu-devel Cc: Peter Maydell , Alexander Graf , Paolo Bonzini Hi everybody, In case of multithread TCG what is the best way to handle qemu_global_mutex? We though to have one mutex per vcpu and then synchronize vcpu threads when they exit (eg: in tcg_exec_all). Is that making sense? Thanks, Fred