From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgusR-0007FX-M4 for qemu-devel@nongnu.org; Tue, 29 Sep 2015 09:23:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgusM-00075F-VG for qemu-devel@nongnu.org; Tue, 29 Sep 2015 09:23:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgusM-00074x-Ph for qemu-devel@nongnu.org; Tue, 29 Sep 2015 09:23:22 -0400 Date: Tue, 29 Sep 2015 14:23:17 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20150929132317.GJ3810@work-vm> References: <87E5D202-0E71-426D-807A-A0737EF07158@gmail.com> <20150928023046.4417.51660@loki> <371B9FFB-14FD-4707-9094-29EC9F6B508F@gmail.com> <87vbavm27u.fsf@blackfin.pond.sub.org> <20150929131109.GI3810@work-vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] feature idea: allow user to run custom scripts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Programmingkid Cc: Michael Roth , Peter Maydell , Peter Crosthwaite , qemu-devel qemu-devel , Markus Armbruster * Programmingkid (programmingkidx@gmail.com) wrote: > > On Sep 29, 2015, at 9:11 AM, Dr. David Alan Gilbert wrote: > > > * Peter Maydell (peter.maydell@linaro.org) wrote: > >> On 28 September 2015 at 20:43, Programmingkid wrote: > >>> > >>> On Sep 28, 2015, at 3:29 AM, Markus Armbruster wrote: > >>> > >>>> Programmingkid writes: > >>>>> A menu item > >>>>> that displays a file open dialog is very easy to use. The user just selects > >>>>> a file and QEMU loads and runs all the commands in it. This feature > >>>>> would make QEMU easier to use. It would also make QEMU easily > >>>>> expandable. Typing long commands in the monitor is difficult and > >>>>> error prone. Saving these commands in a file would make it much > >>>>> easier for the user. An example command someone could put in a > >>>>> file is sending Control-Alt-Delete to the emulator. Another command > >>>>> could be mounting an image file. This feature would make things > >>>>> much easier for the user. > >>>> > >>>> You didn't mention you're talking about a *GUI* feature. > >>> > >>> I'm thinking it would be easier to send in the patch rather than talk about > >>> what this feature could be. > >> > >> I think Markus and I are trying to save you that effort by > >> pointing out that this is a VM management layer feature, > >> not a core QEMU feature. > > > > OK, so I'm going to agree with Programmingkid here. > > I think this would be a useful feature to have in QEMU; I've > > got gratuitous hacks in some of my test scripts that work > > around it not being there. > > > > I think there are two possible things, both of which seem fairly > > easy: > > 1) Add a -chardev from file that works in this case > > (I don't think the current chardev file works does it?) > > > > 2) A 'source' like command. > > My idea was to just send the command to the monitor as if the user typed them up. Yeh, I'm not sure how easily that'll be to glue into the monitor, because the monitor has a parser that's fed somehow from the chardev. Dave -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK