Message ID | c5f32c99c6855d466737daf1cd262e7e92062f87.1265241351.git.mtosatti@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> 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 E894FB7D36 for <incoming@patchwork.ozlabs.org>; Thu, 4 Feb 2010 11:14:15 +1100 (EST) Received: from localhost ([127.0.0.1]:40442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcpFd-0001PF-QJ for incoming@patchwork.ozlabs.org; Wed, 03 Feb 2010 19:07:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncp6A-0007BO-Uv for qemu-devel@nongnu.org; Wed, 03 Feb 2010 18:57:31 -0500 Received: from [199.232.76.173] (port=56404 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncp6A-0007Ag-05 for qemu-devel@nongnu.org; Wed, 03 Feb 2010 18:57:30 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from <mtosatti@redhat.com>) id 1Ncp65-000433-K4 for qemu-devel@nongnu.org; Wed, 03 Feb 2010 18:57:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49354) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <mtosatti@redhat.com>) id 1Ncp65-00042q-6L for qemu-devel@nongnu.org; Wed, 03 Feb 2010 18:57:25 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o13NvO0S005898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Feb 2010 18:57:24 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o13NvN7Q005719; Wed, 3 Feb 2010 18:57:23 -0500 Received: from amt.cnet (vpn-9-161.rdu.redhat.com [10.11.9.161]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o13NvLqA026864; Wed, 3 Feb 2010 18:57:22 -0500 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id 9A28168A8F3; Wed, 3 Feb 2010 21:56:37 -0200 (BRST) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id o13NuYJP013151; Wed, 3 Feb 2010 21:56:34 -0200 From: Marcelo Tosatti <mtosatti@redhat.com> To: Anthony Liguori <aliguori@us.ibm.com> Date: Wed, 3 Feb 2010 21:55:51 -0200 Message-Id: <c5f32c99c6855d466737daf1cd262e7e92062f87.1265241351.git.mtosatti@redhat.com> In-Reply-To: <cover.1265241351.git.mtosatti@redhat.com> References: <cover.1265241351.git.mtosatti@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Marcelo Tosatti <mtosatti@redhat.com>, qemu-devel@nongnu.org, kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 6/6] Fix incoming migration with iothread X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org |
diff --git a/vl.c b/vl.c index 50f133d..57f0ba5 100644 --- a/vl.c +++ b/vl.c @@ -3282,6 +3282,8 @@ static int cpu_can_run(CPUState *env) return 0; if (env->stopped) return 0; + if (!vm_running) + return 0; return 1; }
Do not allow the vcpus to execute if the vm is stopped. Fixes -incoming with CONFIG_IOTHREAD enabled. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> --- vl.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)