From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Wbk-0000XK-Bl for qemu-devel@nongnu.org; Wed, 16 Jul 2014 17:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X7Wbg-0004dd-0l for qemu-devel@nongnu.org; Wed, 16 Jul 2014 17:19:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X7Wbf-0004dY-OM for qemu-devel@nongnu.org; Wed, 16 Jul 2014 17:19:19 -0400 Message-ID: <53C6EC43.40507@redhat.com> Date: Wed, 16 Jul 2014 15:18:59 -0600 From: Eric Blake MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="TgIFe4a6spwAs6V04fw9BBglnWB70sw1j" 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 , qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --TgIFe4a6spwAs6V04fw9BBglnWB70sw1j Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/16/2014 03:13 PM, Yuanzhen Gu wrote: > Hi folks, >=20 >=20 > 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. >=20 >=20 > Basically, I'm using # (qemu) snapshot_blkdev > taking snapshot, > http://wiki.qemu.org/Features/Snapshots my profile tool didn't work = when > giving command inside QMP. >=20 >=20 > Does anyone know how to find the pause (freeze) and restore(thaw) func= tion > before and after taking snapshot? Or anyway using snapshot_blkdev comma= nd > 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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --TgIFe4a6spwAs6V04fw9BBglnWB70sw1j 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/ iQEcBAEBCAAGBQJTxuxDAAoJEKeha0olJ0NqIssH/iljSt0sZyCPR6oVmNe2larI 7QhK2fE4bP9aGSMkXc/5RtQlrkF/DDhNSVy8j/JNdULGGeN92cn73VV8QPQPeR1G f0G+M0rVY+7eKAN/wPq5r8BdLg5EGruB5ZCBGYo14BKWuwl15GuW+cb45SqCG2dt QaDoWL99GVmLUdE1TOED5iIkw6vnaMSAOFmqzL+oxgLc8nXQ1CUQjoaFnnungaO2 lk6caf1nnNqIOySlA0f+gzCmeD0wiZMp9wIKhtvYaj+5nVwR4e/Ao6pCJ5MKP4q8 5w6NiA4SgTaMgmw0CHVvtNfTZ2SAevALDvBDgv5GVRWoWOCXVXoRCYBejtwsr/w= =2128 -----END PGP SIGNATURE----- --TgIFe4a6spwAs6V04fw9BBglnWB70sw1j--