From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni6st-0005nr-Fa for qemu-devel@nongnu.org; Thu, 18 Feb 2010 08:57:39 -0500 Received: from [199.232.76.173] (port=50292 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni6ss-0005nW-To for qemu-devel@nongnu.org; Thu, 18 Feb 2010 08:57:38 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ni6sr-0001PS-Hp for qemu-devel@nongnu.org; Thu, 18 Feb 2010 08:57:38 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33422) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ni6sq-0001P1-TT for qemu-devel@nongnu.org; Thu, 18 Feb 2010 08:57:37 -0500 Message-Id: <20100217221701.179465472@redhat.com> Date: Wed, 17 Feb 2010 20:14:43 -0200 From: Marcelo Tosatti References: <20100217221439.351652889@redhat.com> Content-Disposition: inline; filename=kvm-vcpu-loop-exit-request Subject: [Qemu-devel] [patch uq/master 4/4] qemu: kvm: remove pre-entry exit_request check with iothread enabled List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm@vger.kernel.org, qemu-devel@nongnu.org Cc: Marcelo Tosatti , avi@redhat.com With SIG_IPI blocked vcpu loop exit notification happens via -EAGAIN from KVM_RUN. Signed-off-by: Marcelo Tosatti Index: qemu/kvm-all.c =================================================================== --- qemu.orig/kvm-all.c +++ qemu/kvm-all.c @@ -753,11 +753,13 @@ int kvm_cpu_exec(CPUState *env) dprintf("kvm_cpu_exec()\n"); do { +#ifndef CONFIG_IOTHREAD if (env->exit_request) { dprintf("interrupt exit requested\n"); ret = 0; break; } +#endif if (env->kvm_vcpu_dirty) { kvm_arch_put_registers(env);