From: Eric Blake <eblake@redhat.com>
To: Yuanzhen Gu <yg185@cs.rutgers.edu>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] pause and restore function before and after QEMU Live Snapshot
Date: Thu, 17 Jul 2014 15:26:26 -0600 [thread overview]
Message-ID: <53C83F82.5020104@redhat.com> (raw)
In-Reply-To: <CAOjERXwy_FuNdUtQTp3CFbTVMp32dYFz_aTNbzosw5J6gOjxFg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1312 bytes --]
On 07/17/2014 02:20 PM, Yuanzhen Gu wrote:
> Hi Eric,
[please don't top-post on technical lists]
> I enabled libvirt debugging, and saw the log file under
> /var/log/libvirt/libvirtd.log,
Which debugging filters did you enable? In particular, you'll want to
turn on LIBVIRT_LOG_FILTERS="1:qemu" for full libvirt logging of qemu
interaction (see http://libvirt.org/logging.html for details); at which
point you can then search for QEMU_MONITOR_IO_PROCESS lines to see when
libvirt sends commands to QMP and gets replies back. This sort of
question may be better asked on the libvirt-users@redhat.com list.
>
> for example, I saw
> 2014-07-17 20:06:55.992+0000: 4391: debug : qemuProcessHandleResume:575 :
> Transitioned guest ubuntu out of paused into resumed state
>
> my further question is, is there any way to locate the function call for
> pause and resume from source code, based on the log info? thanks!
Are you looking for where in the libvirt source code a snapshot manages
qemu commands? Look for
src/qemu/qemu_driver.c:qemuDomainSnapshotCreateActiveExternal, and trace
through the code it calls for qemuDomainSnapshotFSFreeze and
qemuMonitorTransaction.
--
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 --]
next prev parent reply other threads:[~2014-07-17 21:27 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
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 [this message]
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=53C83F82.5020104@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.