From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix handling of disk-only snapshots
Date: Thu, 11 Dec 2008 15:06:58 -0600 [thread overview]
Message-ID: <494180F2.1010904@codemonkey.ws> (raw)
In-Reply-To: <493D3678.1040406@suse.de>
Kevin Wolf wrote:
> When creating a snapshot with multiple qcow2 disks attached, the current
> behaviour is that qemu creates a disk snapshot on all of them and
> chooses one to write the VM state to.
>
> Despite having the state only in one image, loadvm tries to restore the
> VM state from the middle of nowhere if you run qemu a second time with
> only one of the other images attached. In the lucky case it will fail
> because there simply is no state, but it also can happen that it loads
> the state of a different snapshot (the one this new one is based upon).
>
> The fix is to write a zero VM state size to the images which don't
> contain the state, and check this in loadvm.
>
> I agree that you probably have to provoke such things intentionally to
> get in a state like this with qemu itself. However, with my second patch
> that adds snapshot support to qemu-img it could become a reasonable use
> case to have snapshots with and without VM states on the same image.
>
> Signed-off-by: Kevin Wolf <kwolf@suse.de>
>
Applied. Thanks.
Regards,
Anthony Liguori
prev parent reply other threads:[~2008-12-11 21:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-08 15:00 [Qemu-devel] [PATCH] Fix handling of disk-only snapshots Kevin Wolf
2008-12-11 21:06 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=494180F2.1010904@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).