From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEsl-00040J-9n for qemu-devel@nongnu.org; Thu, 06 Oct 2016 16:03:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsEsh-00012j-3b for qemu-devel@nongnu.org; Thu, 06 Oct 2016 16:03:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEsg-00012H-QO for qemu-devel@nongnu.org; Thu, 06 Oct 2016 16:03:03 -0400 References: <42B37FE3-87E1-42CA-A089-B090F37FF7D5@gmail.com> <791AB76A-C338-4064-AA0D-E4B2E3825F27@gmail.com> <246e018e-46d6-97a1-7cf5-7a6d97ef6784@redhat.com> <5F9A9486-71D8-4E80-99C9-924630F1B71B@gmail.com> <2f9fa744-bede-2d34-c991-3ba76e39a005@redhat.com> <4542e18a-fc0e-8ca0-a6ca-b6f9e4cc1781@redhat.com> From: Eric Blake Message-ID: <4fe88589-321a-34dd-0bcf-0d2a479a93f3@redhat.com> Date: Thu, 6 Oct 2016 15:03:01 -0500 MIME-Version: 1.0 In-Reply-To: <4542e18a-fc0e-8ca0-a6ca-b6f9e4cc1781@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qDfR028oIu0hdlU3wLiqIQUoXwfsQEk8Q" Subject: Re: [Qemu-devel] Adding Save States menu items List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Programmingkid Cc: Peter Maydell , qemu-devel qemu-devel This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qDfR028oIu0hdlU3wLiqIQUoXwfsQEk8Q From: Eric Blake To: Paolo Bonzini , Programmingkid Cc: Peter Maydell , qemu-devel qemu-devel Message-ID: <4fe88589-321a-34dd-0bcf-0d2a479a93f3@redhat.com> Subject: Re: [Qemu-devel] Adding Save States menu items References: <42B37FE3-87E1-42CA-A089-B090F37FF7D5@gmail.com> <791AB76A-C338-4064-AA0D-E4B2E3825F27@gmail.com> <246e018e-46d6-97a1-7cf5-7a6d97ef6784@redhat.com> <5F9A9486-71D8-4E80-99C9-924630F1B71B@gmail.com> <2f9fa744-bede-2d34-c991-3ba76e39a005@redhat.com> <4542e18a-fc0e-8ca0-a6ca-b6f9e4cc1781@redhat.com> In-Reply-To: <4542e18a-fc0e-8ca0-a6ca-b6f9e4cc1781@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/06/2016 11:17 AM, Paolo Bonzini wrote: >=20 >=20 > On 06/10/2016 18:04, Programmingkid wrote: >> 'Save State...' would call something equivalent to the monitor command= savevm. >> It would display a dialog box asking to give a name to this save. The = default >> name would probably be "save state mm-dd-yyyy - n". The m,d,y stand >> for month, day, and year respectively. The n would be the save state >> count for that day. >> =20 >> 'Restore state...' would probably display a dialog box with all the sa= ve >> states displayed in a list. The user could select one of them and >> QEMU would restore that state. >=20 > These are of course savevm and loadvm. Which are somewhat limited in their power - they don't always work if the user does hotplug in between. >> Code in the gui would detect if the hard drive image was in a format t= hat >> supported save states. The menu items would probably be grayed out if >> save states could not work with the current HD image file.=20 >=20 > Ok, this makes sense. Thanks for explaining it! I think this would be= > nice to have in the GTK+ interface. I don't know - libvirt already learned the hard way that qcow2 images alone are not ideal for saving machine state; and libvirt ended up creating its own save state format that consists of a concatenation of libvirt XML and the qemu migration format. And the problem of how to revert to a state with different devices than the guest currently has seems rather difficult to squeeze into a GTK app that only manages a single VM. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --qDfR028oIu0hdlU3wLiqIQUoXwfsQEk8Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX9q31AAoJEKeha0olJ0Nqtg8IAJmme9pdRBTD7eihmOAS8SDG QTg6DTEO5fJ7Q20cOPTDdTj396BYDbgWgJJB5VBmQ8uyCb8hxcxIAV8t1OM8kSbt Q6w7mhzupOP6Vs8pBHbgA9f6RpLKQc8U81HwwD/mHHLPXWd1kjLJUtQB4+uJp2rL PEC92ZWIDLrgeJgGbhvZs6fLOftL2svk9T5CiT27Phh392MEFxOLT5M8Qk9uwW8A 2EZiEuha5xM1Eo1pJIKcxejlinkpDWVjn1CpVVh89JDMpuQrUqwCYDP2tovpHg/I dBW2cYh9j8Mi3gq2mNaQVx73SbFK9mdqlrDYIXq6ELGNgIZGF73ieaUStqip0B0= =E6y3 -----END PGP SIGNATURE----- --qDfR028oIu0hdlU3wLiqIQUoXwfsQEk8Q--