From patchwork Wed Jul 15 09:04:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 495533 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 33A171402AB for ; Wed, 15 Jul 2015 19:05:46 +1000 (AEST) Received: from localhost ([::1]:34483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFIdL-0001Nd-Ms for incoming@patchwork.ozlabs.org; Wed, 15 Jul 2015 05:05:43 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFIcV-0008Vr-WD for qemu-devel@nongnu.org; Wed, 15 Jul 2015 05:04:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFIcT-0001xS-L5 for qemu-devel@nongnu.org; Wed, 15 Jul 2015 05:04:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFIcT-0001wq-H1 for qemu-devel@nongnu.org; Wed, 15 Jul 2015 05:04:49 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 37897BBB30 for ; Wed, 15 Jul 2015 09:04:49 +0000 (UTC) Received: from trasno.mitica (ovpn-116-85.ams2.redhat.com [10.36.116.85]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t6F94eFV008573; Wed, 15 Jul 2015 05:04:47 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 15 Jul 2015 11:04:38 +0200 Message-Id: <1436951080-12390-5-git-send-email-quintela@redhat.com> In-Reply-To: <1436951080-12390-1-git-send-email-quintela@redhat.com> References: <1436951080-12390-1-git-send-email-quintela@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: amit.shah@redhat.com, dgilbert@redhat.com Subject: [Qemu-devel] [PULL 4/6] migration: Register global state section before loadvm 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 Otherwise, it is not found Signed-off-by: Juan Quintela --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 3f269dc..5856396 100644 --- a/vl.c +++ b/vl.c @@ -4615,6 +4615,7 @@ int main(int argc, char **argv, char **envp) } qemu_system_reset(VMRESET_SILENT); + register_global_state(); if (loadvm) { if (load_vmstate(loadvm) < 0) { autostart = 0; @@ -4628,7 +4629,6 @@ int main(int argc, char **argv, char **envp) return 0; } - register_global_state(); if (incoming) { Error *local_err = NULL; qemu_start_incoming_migration(incoming, &local_err);