From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFIF8-0005xV-L2 for qemu-devel@nongnu.org; Wed, 15 Jul 2015 04:40:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFIEy-00005t-Se for qemu-devel@nongnu.org; Wed, 15 Jul 2015 04:40:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFIEy-00005d-O7 for qemu-devel@nongnu.org; Wed, 15 Jul 2015 04:40:32 -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 193F2226 for ; Wed, 15 Jul 2015 08:40:32 +0000 (UTC) Date: Wed, 15 Jul 2015 14:10:18 +0530 From: Amit Shah Message-ID: <20150715084018.GR10280@grmbl.mre> References: <1436946982-24643-1-git-send-email-quintela@redhat.com> <20150715081004.GP10280@grmbl.mre> <87vbdlbzpj.fsf@neno.neno> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87vbdlbzpj.fsf@neno.neno> Subject: Re: [Qemu-devel] [PATCH] migration: We also want to store the global state for savevm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: qemu-devel@nongnu.org, dgilbert@redhat.com On (Wed) 15 Jul 2015 [10:19:04], Juan Quintela wrote: > 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: Nice :-) > 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 Thanks, Amit