From patchwork Tue Aug 18 13:34:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 31556 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 659CCB6F2B for ; Tue, 18 Aug 2009 23:38:48 +1000 (EST) Received: from localhost ([127.0.0.1]:53550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdOtc-0006I6-DC for incoming@patchwork.ozlabs.org; Tue, 18 Aug 2009 09:38:40 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdOrX-0005TT-E2 for qemu-devel@nongnu.org; Tue, 18 Aug 2009 09:36:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdOrS-0005Sk-Su for qemu-devel@nongnu.org; Tue, 18 Aug 2009 09:36:30 -0400 Received: from [199.232.76.173] (port=55920 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdOrS-0005Sh-Og for qemu-devel@nongnu.org; Tue, 18 Aug 2009 09:36:26 -0400 Received: from mx2.redhat.com ([66.187.237.31]:43651) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdOrS-0001tW-C6 for qemu-devel@nongnu.org; Tue, 18 Aug 2009 09:36:26 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7IDaPO0000530 for ; Tue, 18 Aug 2009 09:36:25 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n7IDaOmH018948; Tue, 18 Aug 2009 09:36:24 -0400 Received: from localhost.localdomain (vpn1-4-110.ams2.redhat.com [10.36.4.110]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7IDaKSu006375; Tue, 18 Aug 2009 09:36:23 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Tue, 18 Aug 2009 15:34:06 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [Qemu-devel] [PATCH 1/5] loadvm already call vm_start() 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 If there are any error. do_loadvm() will not call vm_start() and we would call it on the next line Signed-off-by: Juan Quintela --- vl.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 8b2b289..eb04d1c 100644 --- a/vl.c +++ b/vl.c @@ -6036,8 +6036,10 @@ int main(int argc, char **argv, char **envp) exit(1); } - if (loadvm) + if (loadvm) { + autostart = 0; do_loadvm(cur_mon, loadvm); + } if (incoming) { autostart = 0;