From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Luokg-0004Ws-BH for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:09:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Luokb-0004U6-Sw for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:09:09 -0400 Received: from [199.232.76.173] (port=55603 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Luokb-0004Tu-LW for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:09:05 -0400 Received: from e5.ny.us.ibm.com ([32.97.182.145]:59503) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Luokb-0007QI-9T for qemu-devel@nongnu.org; Fri, 17 Apr 2009 10:09:05 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e5.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n3HE4fVx024038 for ; Fri, 17 Apr 2009 10:04:41 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n3HE94oC195626 for ; Fri, 17 Apr 2009 10:09:04 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n3HE93Xg019249 for ; Fri, 17 Apr 2009 10:09:03 -0400 Message-ID: <49E88D7C.8040602@us.ibm.com> Date: Fri, 17 Apr 2009 09:09:00 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <20090407195126.467365249@localhost.localdomain> <20090407195443.832269134@localhost.localdomain> In-Reply-To: <20090407195443.832269134@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [patch 11/11] qemu: basic kvm iothread support Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mtosatti@redhat.com, "qemu-devel@nongnu.org" mtosatti@redhat.com wrote: > Allow the iothread to run while vcpu is in guest mode. > > Signed-off-by: Marcelo Tosatti > > Index: trunk/kvm-all.c > =================================================================== > --- trunk.orig/kvm-all.c > +++ trunk/kvm-all.c > @@ -451,6 +451,7 @@ int kvm_cpu_exec(CPUState *env) > > do { > kvm_arch_pre_run(env, run); > + kvm_pre_run(env); > Avoid introduce kvm_pre_run() et al. Eventually, we want to avoid grabbing the mutex as long as humanly possible so we can support lockless MMIO/PIO. So let's avoid adding abstractions that will just make this harder. -- Regards, Anthony Liguori