Received: from eggs.gnu.org ([2001:4830:134:3::10]:56180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsChQ-00033s-4k for qemu-devel@nongnu.org; Thu, 06 Oct 2016 13:43:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsChM-0002xd-1c for qemu-devel@nongnu.org; Thu, 06 Oct 2016 13:43:15 -0400 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]:33880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsChL-0002xI-RJ for qemu-devel@nongnu.org; Thu, 06 Oct 2016 13:43:11 -0400 Received: by mail-io0-x234.google.com with SMTP id r30so22914303ioi.1 for ; Thu, 06 Oct 2016 10:43:11 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: <4542e18a-fc0e-8ca0-a6ca-b6f9e4cc1781@redhat.com> Date: Thu, 6 Oct 2016 13:43:08 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: 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> Subject: Re: [Qemu-devel] Adding Save States menu items List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , qemu-devel qemu-devel On Oct 6, 2016, at 12:17 PM, 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 = save >> 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. >=20 >> 'Manage Save States...' would display a dialog box with all the saves >> states displayed in a list. There would be buttons on the bottom = called "Delete", "Rename", >> and "Duplicate". They would give the user the options that can >> be done to each save state. The Delete button would correspond to >> the monitor command delvm "name". Rename and Duplicate would have to >> be researched a little more before I can say how they would be = implemented. >=20 > I think Delete is enough. >=20 >> Code in the gui would detect if the hard drive image was in a format = that >> 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. >=20 > Paolo @ Paolo Thanks for the help. @ Peter I don't know how to implement this in GTK. The GTK GUI = maintainer doesn't even reply to my emails. Could we start this in Cocoa and then port it to = GTK? I think the time is right. QEMU has progressed to the point that the save and = restore feature works. A lot of users would appreciate this feature if it were = more accessible.=