From patchwork Fri Mar 16 12:13:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 147199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B62F1B6EE8 for ; Fri, 16 Mar 2012 23:38:22 +1100 (EST) Received: from localhost ([::1]:32902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8VtP-0004pr-67 for incoming@patchwork.ozlabs.org; Fri, 16 Mar 2012 08:04:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8Vsd-0002wj-Cl for qemu-devel@nongnu.org; Fri, 16 Mar 2012 08:03:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8VsT-0007FB-BN for qemu-devel@nongnu.org; Fri, 16 Mar 2012 08:03:34 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:43801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8VsT-0007Es-4d for qemu-devel@nongnu.org; Fri, 16 Mar 2012 08:03:25 -0400 X-IronPort-AV: E=Sophos;i="4.73,597,1325480400"; d="scan'208";a="186243291" Received: from ftlpmailmx01.citrite.net ([10.13.107.65]) by FTLPIPO02.CITRIX.COM with ESMTP/TLS/RC4-MD5; 16 Mar 2012 08:03:23 -0400 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.65) with Microsoft SMTP Server id 8.3.213.0; Fri, 16 Mar 2012 08:03:22 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59] helo=localhost.localdomain) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1S8VsL-0003ts-CP; Fri, 16 Mar 2012 12:03:17 +0000 From: Stefano Stabellini To: qemu-devel@nongnu.org Date: Fri, 16 Mar 2012 12:13:06 +0000 Message-ID: <1331899989-7756-3-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.165.176.63 Cc: jan.kiszka@siemens.com, xen-devel@lists.xensource.com, avi@redhat.com, anthony@codemonkey.ws, Stefano Stabellini Subject: [Qemu-devel] [PATCH v7 3/6] Set runstate to INMIGRATE earlier X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Set runstate to RUN_STATE_INMIGRATE as soon as we can on resume. Signed-off-by: Stefano Stabellini Acked-by: Luiz Capitulino --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 1d4c350..918177a 100644 --- a/vl.c +++ b/vl.c @@ -3099,6 +3099,7 @@ int main(int argc, char **argv, char **envp) break; case QEMU_OPTION_incoming: incoming = optarg; + runstate_set(RUN_STATE_INMIGRATE); break; case QEMU_OPTION_nodefaults: default_serial = 0; @@ -3596,7 +3597,6 @@ int main(int argc, char **argv, char **envp) } if (incoming) { - runstate_set(RUN_STATE_INMIGRATE); int ret = qemu_start_incoming_migration(incoming); if (ret < 0) { fprintf(stderr, "Migration failed. Exit code %s(%d), exiting.\n",