From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4c5J-0000mc-Lu for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:43:29 -0400 Received: from [140.186.70.92] (port=59993 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4c5H-0000ko-MV for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:43:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4c5D-0003XE-N7 for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:43:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48353) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4c5D-0003Ws-F5 for qemu-devel@nongnu.org; Wed, 21 Apr 2010 11:43:23 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3LFhM2Q025543 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 21 Apr 2010 11:43:22 -0400 Message-ID: <4BCF1CFE.50001@redhat.com> Date: Wed, 21 Apr 2010 17:42:54 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1271797792-24571-1-git-send-email-lcapitulino@redhat.com> <1271797792-24571-5-git-send-email-lcapitulino@redhat.com> <20100420185959.31829121@redhat.com> <20100421115410.5226f1dc@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 04/22] savevm: do_loadvm(): Always resume the VM List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: armbru@redhat.com, qemu-devel@nongnu.org, Luiz Capitulino Am 21.04.2010 17:39, schrieb Juan Quintela: > Luiz Capitulino wrote: >> 2. Don't keep the VM paused when recovery is possible >> >> If you can fix that, it's ok to me: I'll drop this and the next patch. >> >> Otherwise I'll have to insist on the split. > > Re-read my email. At this point, nothing is fixable :( After doing > the 1st: > >>> ret = bdrv_snapshot_goto(bs1, name); > > and not returning an error -> state has changed, period. You can't > restart the machine. Right, at this point. But the most likely error for bdrv_snapshot_goto is that the snapshot doesn't even exist. This is something that you can check before you change any state. I think this is what Luiz meant (at least it is what I said and he agreed). Kevin