From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7NNc-00085z-IM for qemu-devel@nongnu.org; Tue, 23 Jun 2015 08:32:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7NNY-0002Ob-B0 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 08:32:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7NNY-0002ON-67 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 08:32:40 -0400 Message-ID: <558951E3.5030509@redhat.com> Date: Tue, 23 Jun 2015 14:32:35 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1435062084-25332-1-git-send-email-alex.bennee@linaro.org> In-Reply-To: <1435062084-25332-1-git-send-email-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH] qemu_mutux: make the iothread recursive (MTTCG) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QWxleCBCZW5uw6ll?= , mttcg@greensocs.com, mark.burton@greensocs.com, fred.konrad@greensocs.com Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org On 23/06/2015 14:21, Alex Benn=C3=A9e wrote: > While I was testing multi-threaded TCG I discovered once consequence of > using locking around memory_region_dispatch is that virt-io transaction= s > could dead lock trying to grab the main mutex. This is due to the > virt-io driver writing data back into the system memory: Have you looked at the patches I posted last week? http://thread.gmane.org/gmane.comp.emulators.qemu/345258 Paolo