From patchwork Mon Feb 22 21:26:49 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 46017 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 594F6B7CED for ; Tue, 23 Feb 2010 08:46:18 +1100 (EST) Received: from localhost ([127.0.0.1]:44861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njg1C-0002Bn-2L for incoming@patchwork.ozlabs.org; Mon, 22 Feb 2010 16:40:42 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Njfou-0006wb-U1 for qemu-devel@nongnu.org; Mon, 22 Feb 2010 16:28:00 -0500 Received: from [199.232.76.173] (port=56408 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njfot-0006w1-PK for qemu-devel@nongnu.org; Mon, 22 Feb 2010 16:27:59 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Njfom-00036r-Ij for qemu-devel@nongnu.org; Mon, 22 Feb 2010 16:27:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57606) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Njfol-00036D-Ez for qemu-devel@nongnu.org; Mon, 22 Feb 2010 16:27:52 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1MLRnmi025393 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 22 Feb 2010 16:27:49 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1MLRmaC009048; Mon, 22 Feb 2010 16:27:48 -0500 Received: from amt.cnet (vpn-11-163.rdu.redhat.com [10.11.11.163]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o1MLRlSl016405; Mon, 22 Feb 2010 16:27:48 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 9DD2D66E138; Mon, 22 Feb 2010 18:27:19 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o1MLRGD6000791; Mon, 22 Feb 2010 18:27:16 -0300 From: Marcelo Tosatti To: Anthony Liguori Date: Mon, 22 Feb 2010 18:26:49 -0300 Message-Id: <6312b92853a7cd483533de0348dcd26edef74824.1266874009.git.mtosatti@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Marcelo Tosatti , qemu-devel@nongnu.org, kvm@vger.kernel.org, Avi Kivity Subject: [Qemu-devel] [PATCH 7/8] kvm: remove pre-entry exit_request check with iothread enabled X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org With SIG_IPI blocked vcpu loop exit notification happens via -EAGAIN from KVM_RUN. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- kvm-all.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 38c372f..91d3cbd 100644 --- a/kvm-all.c +++ b/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);