From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7tCZ-0000FM-Ml for qemu-devel@nongnu.org; Thu, 17 Jul 2014 17:27:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7tCT-0000wX-QV for qemu-devel@nongnu.org; Thu, 17 Jul 2014 17:26:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7tCT-0000wE-H4 for qemu-devel@nongnu.org; Thu, 17 Jul 2014 17:26:49 -0400 Message-ID: <53C83F82.5020104@redhat.com> Date: Thu, 17 Jul 2014 15:26:26 -0600 From: Eric Blake MIME-Version: 1.0 References: <53C6EC43.40507@redhat.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MmegmlAoOnc21SBqJLdbep9odpHNNuv1M" Subject: Re: [Qemu-devel] pause and restore function before and after QEMU Live Snapshot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yuanzhen Gu Cc: "qemu-devel@nongnu.org" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MmegmlAoOnc21SBqJLdbep9odpHNNuv1M Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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=3D"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. >=20 > 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 >=20 > my further question is, is there any way to locate the function call fo= r > 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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --MmegmlAoOnc21SBqJLdbep9odpHNNuv1M Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTyD+CAAoJEKeha0olJ0Nq48AH/1wJr9YG3cSMNnMe1qVWjZtp djElLPZ0zV3/8m652tVs1kOPwhH8/Sg9PQ680n4uHiZ0eUiCEkXzBg+nb4V0zGu7 6Yw/ILZTqoLMVPOwKQav2wPHZFkSkYf9BJ66tRJGZzhktMuCQAY7KQStE+1GHRTo 57Pq7oRme9F89ctAZbStkO4l5ey188rFOX3grvxDb61mhIk2kxaFTywdD3kgRK0E oWDTS7SWfa368B0wWhVnETPoFRWzZHzKC+sdWuuTLN06nJAzVAP5WTDw/Hwi4edg uK5MFZ7oEZqUEOGNvvV7EPRMcuwikJSfuGHr8/2kZPS1TDxanytnmY+EZ2tnu7E= =1UT1 -----END PGP SIGNATURE----- --MmegmlAoOnc21SBqJLdbep9odpHNNuv1M--