From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5ePp-0000we-Lm for qemu-devel@nongnu.org; Thu, 18 Jun 2015 14:19:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5ePk-0003qN-Ln for qemu-devel@nongnu.org; Thu, 18 Jun 2015 14:19:53 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:46739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5ePk-0003q4-B6 for qemu-devel@nongnu.org; Thu, 18 Jun 2015 14:19:48 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 18 Jun 2015 19:19:46 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id E875E17D8059 for ; Thu, 18 Jun 2015 19:20:48 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5IIJhkp22413352 for ; Thu, 18 Jun 2015 18:19:43 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5IIJgt4025815 for ; Thu, 18 Jun 2015 12:19:42 -0600 Message-ID: <55830BBE.5070907@de.ibm.com> Date: Thu, 18 Jun 2015 20:19:42 +0200 From: Christian Borntraeger MIME-Version: 1.0 References: <1434646046-27150-1-git-send-email-pbonzini@redhat.com> <1434646046-27150-7-git-send-email-pbonzini@redhat.com> In-Reply-To: <1434646046-27150-7-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 6/9] kvm: First step to push iothread lock out of inner run loop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: jan.kiszka@siemens.com Am 18.06.2015 um 18:47 schrieb Paolo Bonzini: > @@ -1887,11 +1893,15 @@ int kvm_cpu_exec(CPUState *cpu) > break; > default: > DPRINTF("kvm_arch_handle_exit\n"); > + qemu_mutex_lock_iothread(); > ret = kvm_arch_handle_exit(cpu, run); > + qemu_mutex_unlock_iothread(); > break; > } > } while (ret == 0); > The next logical step would be to do a push down. Get rid of these two new lines and do it in every kvm_arch_handle_exit function. This would allow arch maintainers to do their part of lock breaking. Can be an addon patch, though. Christian