From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7OhA-0003QF-6B for qemu-devel@nongnu.org; Tue, 23 Jun 2015 09:57:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Oh0-0003kg-QV for qemu-devel@nongnu.org; Tue, 23 Jun 2015 09:57:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Oh0-0003kc-LN for qemu-devel@nongnu.org; Tue, 23 Jun 2015 09:56:50 -0400 Message-ID: <5589659D.7040907@redhat.com> Date: Tue, 23 Jun 2015 15:56:45 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1434646046-27150-1-git-send-email-pbonzini@redhat.com> <1434646046-27150-2-git-send-email-pbonzini@redhat.com> <558963FC.6030308@greensocs.com> In-Reply-To: <558963FC.6030308@greensocs.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/9] main-loop: use qemu_mutex_lock_iothread consistently List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frederic Konrad , qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com, Mark Burton , Guillaume Delbergue On 23/06/2015 15:49, Frederic Konrad wrote: >> >> Hopefully, multithreaded TCG will get rid of the whole logic to kick >> VCPUs whenever an I/O event occurs! > Hopefully :), this means dropping the iothread mutex as soon as possibl= e > and removing the iothread_requesting_mutex I guess.. Yes---running most of cpu_exec outside the BQL, like KVM. io_read and io_write would have to get and release the lock if necessary. cpu_resume_from_signal also might have to release the lock. Paolo