From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34696) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgODZ-0005Tv-2M for qemu-devel@nongnu.org; Sun, 27 Sep 2015 22:31:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgODV-0005Wz-Pi for qemu-devel@nongnu.org; Sun, 27 Sep 2015 22:31:04 -0400 Received: from e37.co.us.ibm.com ([32.97.110.158]:58358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgODV-0005WE-Hq for qemu-devel@nongnu.org; Sun, 27 Sep 2015 22:31:01 -0400 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 27 Sep 2015 20:30:59 -0600 Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id DF9B919D803F for ; Sun, 27 Sep 2015 20:21:49 -0600 (MDT) Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t8S2RjJs4063722 for ; Sun, 27 Sep 2015 19:27:45 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t8S2UpGB027394 for ; Sun, 27 Sep 2015 20:30:52 -0600 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth In-Reply-To: <87E5D202-0E71-426D-807A-A0737EF07158@gmail.com> References: <87E5D202-0E71-426D-807A-A0737EF07158@gmail.com> Message-ID: <20150928023046.4417.51660@loki> Date: Sun, 27 Sep 2015 21:30:46 -0500 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 , Peter Crosthwaite Cc: Peter Maydell , qemu-devel qemu-devel Quoting Programmingkid (2015-09-27 20:49:24) > = > On Sep 27, 2015, at 2:53 PM, Peter Crosthwaite wrote: > = > > On Sun, Sep 27, 2015 at 3:13 AM, Peter Maydell wrote: > >> On 27 September 2015 at 04:39, Programmingkid wrote: > >>> Would you be open to a feature that allows the user to select > >>> and run a custom file that has commands in it that would run > >>> in the monitor? > >> = > >> Sounds like a VM management layer feature. > >> = > > = > > Should -monitor file:/foo/bar do something like this? > = > If you are saying this command line argument loads monitor commands, > then it would only work when QEMU is first started. The feature I want > would work anytime during the running of QEMU. = For that sort of flexibility I think writing commands to a socket via a script/program is simple enough that an additional interface doesn't seem worthwhile. Even our qtest unit tests use this approach. Plus you get the flexibility of a being able to branch based on the return value of commands (error-handling, stateful commands, incorporating output from a serial console, etc.). It seems like a nice feature but it's vastly inferior to what's possible with an external driver.