qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] PATCH: v3 Allow control over drive file open mode
Date: Fri, 1 Aug 2008 18:27:08 +0100	[thread overview]
Message-ID: <20080801172708.GE25063@shareable.org> (raw)
In-Reply-To: <4893448C.1050508@codemonkey.ws>

Anthony Liguori wrote:
> Down the road, you do a savevm.  savevm has to create a checkpoint in 
> all disk images.  The checkpoint will be empty in boo.img but it still 
> needs to create one.  An alternative scenario would be a read-only root fs:
> 
> qemu-system-x86_64 -drive file=rootfs.img,read-only=on
> 
> Where you wanted to be able to do a savevm.

I agree this could be useful (despite my wariness of snapshots :)

In which case, it would be all-the-more useful if it worked correctly
when multiple QEMU instances are using the image file.

"Down the road" - you might not know in advance that you're wishing to
save a snapshot, and by then you might have other running QEMU
instances using that image which you don't want to kill, and of course
if you can't snapshot one, you can't snapshot any of them to shut them
down temporarily.

It should be enough to take an advisory lock during the savevm writes,
shouldn't it?

-- Jamie

  reply	other threads:[~2008-08-01 17:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-01 10:29 [Qemu-devel] PATCH: v3 Allow control over drive file open mode Daniel P. Berrange
2008-08-01 15:10 ` Anthony Liguori
2008-08-01 16:15   ` Daniel P. Berrange
2008-08-01 16:23     ` Andreas Färber
2008-08-01 17:06     ` Jamie Lokier
2008-08-01 16:57   ` Ian Jackson
2008-08-01 17:14     ` Anthony Liguori
2008-08-01 17:27       ` Jamie Lokier [this message]
2008-08-11 16:05       ` Ian Jackson
2008-08-12 11:42         ` Kevin Wolf
2008-08-12 13:31         ` Anthony Liguori
2008-08-12 23:56           ` Jamie Lokier

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=20080801172708.GE25063@shareable.org \
    --to=jamie@shareable.org \
    --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).