All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Yuanzhen Gu <yg185@cs.rutgers.edu>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] pause and restore function before and after QEMU Live Snapshot
Date: Wed, 16 Jul 2014 15:18:59 -0600	[thread overview]
Message-ID: <53C6EC43.40507@redhat.com> (raw)
In-Reply-To: <CAOjERXwmLRVxJ2PJV-f_d9tDVWCSqc+VG0OQttjqb=7M5bAWiw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]

On 07/16/2014 03:13 PM, Yuanzhen Gu wrote:
> Hi folks,
> 
> 
> I am going to make a patch, and need to find the pause and thaw(restore)
> function before and after taking Live QEMU Snapshot respectively.

Libvirt has the ability to do just that, when taking external disk-only
snapshots.  You can turn on libvirt debugging to trace what QMP/agent
commands are sent during the overall snapshot operation.

> 
> 
>  Basically, I'm using # (qemu) snapshot_blkdev <blockX>
> <snapshot-file><format> taking snapshot,
> http://wiki.qemu.org/Features/Snapshots    my profile tool didn't work when
> giving command inside QMP.
> 
> 
>  Does anyone know how to find the pause (freeze) and restore(thaw) function
> before and after taking snapshot? Or anyway using snapshot_blkdev command
> outside QEMU console? Thanks a lot in advance!

You have to coordinate multiple commands: freeze to the guest agent,
then snapshot to QMP, then thaw to the guest agent.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2014-07-16 21:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-16 21:13 [Qemu-devel] pause and restore function before and after QEMU Live Snapshot Yuanzhen Gu
2014-07-16 21:18 ` Eric Blake [this message]
2014-07-16 21:25   ` Andrey Korolyov
2014-07-16 21:48     ` Yuanzhen Gu
2014-07-16 21:51       ` Andrey Korolyov
2014-07-16 21:44   ` Yuanzhen Gu
2014-07-17 20:20   ` Yuanzhen Gu
2014-07-17 21:26     ` Eric Blake
2014-07-17 21:45       ` Yuanzhen Gu

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=53C6EC43.40507@redhat.com \
    --to=eblake@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=yg185@cs.rutgers.edu \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.