Received: from eggs.gnu.org ([2001:4830:134:3::10]:52619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFIug-0005oJ-6Q for qemu-devel@nongnu.org; Wed, 15 Jul 2015 05:23:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFIuc-0003Os-Rm for qemu-devel@nongnu.org; Wed, 15 Jul 2015 05:23:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50080) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFIuc-0003Od-M3 for qemu-devel@nongnu.org; Wed, 15 Jul 2015 05:23:34 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id B95163D6F8C for ; Wed, 15 Jul 2015 09:23:33 +0000 (UTC) From: Juan Quintela In-Reply-To: <20150715081004.GP10280@grmbl.mre> (Amit Shah's message of "Wed, 15 Jul 2015 13:40:04 +0530") References: <1436946982-24643-1-git-send-email-quintela@redhat.com> <20150715081004.GP10280@grmbl.mre> Date: Wed, 15 Jul 2015 10:19:04 +0200 Message-ID: <87vbdlbzpj.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] migration: We also want to store the global state for savevm Reply-To: quintela@redhat.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu-devel@nongnu.org, dgilbert@redhat.com Amit Shah wrote: > On (Wed) 15 Jul 2015 [09:56:22], Juan Quintela wrote: >> Previous commit only stored a valid state for migration. It stored the >> empty string for savevm. Now, we are also storing the current state for >> savevm. > > Can you include some more information in the commit message? Like the > commit hash instead of previous commit, and what bug this fixes? > > Thanks, > > Amit What about: Commit df4b1024526cae3479da3492d6371fd4a7324a03 introduced global_state section. But it only filled the state while doing migration. While doing a savevm, we stored an empty string as state. So when we did a loadvm, it complained that state was invalid. Fedora 21, 4.1.1, qemu 2.4.0-rc0 > ../../configure --target-list="x86_64-softmmu" 068 2s ... - output mismatch (see 068.out.bad) --- /home/bos/jhuston/src/qemu/tests/qemu-iotests/068.out 2015-07-08 17:56:18.588164979 -0400 +++ 068.out.bad 2015-07-09 17:39:58.636651317 -0400 @@ -6,6 +6,8 @@ QEMU X.Y.Z monitor - type 'help' for more information (qemu) savevm 0 (qemu) quit +qemu-system-x86_64: Unknown savevm section or instance 'globalstate' 0 +qemu-system-x86_64: Error -22 while loading VM state QEMU X.Y.Z monitor - type 'help' for more information (qemu) quit *** done Failures: 068 Failed 1 of 1 tests Actually, there were two problems here: - we registered global_state too late for load_vm (fixed on another patch on the list) - we didn't store a valid state for savevm (fixed by this patch). Reported-by: John Snow