From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRBw2-0004PI-0w for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:13:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRBvz-0004P0-Oz for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:13:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRBvz-0004Ox-LM for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:13:35 -0400 Received: from wa-out-1112.google.com ([209.85.146.176]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IRBvz-0004L0-DR for qemu-devel@nongnu.org; Fri, 31 Aug 2007 15:13:35 -0400 Received: by wa-out-1112.google.com with SMTP id k22so1100791waf for ; Fri, 31 Aug 2007 12:13:34 -0700 (PDT) From: Anthony Liguori In-Reply-To: <59abf66e0708311205n6f6086d0g5d7c786ff2bef02b@mail.gmail.com> References: <59abf66e0708311119p2b83fcffg31fac1c298cfc10a@mail.gmail.com> <1188586457.8543.2.camel@squirrel> <59abf66e0708311205n6f6086d0g5d7c786ff2bef02b@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Date: Fri, 31 Aug 2007 14:13:29 -0500 Message-Id: <1188587609.10527.0.camel@squirrel> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] Re: [kvm-devel] [PATCH][RFC] Allowing QEMU to directly execute a directory (and storing command line options in it) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jorge =?ISO-8859-1?Q?Luc=E1ngeli?= Obes Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org On Fri, 2007-08-31 at 16:05 -0300, Jorge Lucángeli Obes wrote: > On 8/31/07, Anthony Liguori wrote: > > It makes little sense to pass a directory when you can pass a config > > file and assume that the directory the config file is in is the CWD. > > > > For instance, if vm.cfg contained just the command line arguments, you > > could have: > > > > MyImage/vm.cfg: -hda disk0.qcow -m 512 > > MyImage/disk0.qcow: > > > > And then do: > > > > qemu -c MyImage/vm.cfg > > I thought about this when coding, and it's true. Maybe we could just > leave a new explicit config file option. I insist on making this as > simple as possible, that's why I chose to use the config file as a > "written-down" command line. > > If this were the case, we could remove the restriction of having the > config file refer only to images on the same directory, as the use of > the config file would be explicit. Thoughts? Yes. It should be a very simple patch. Regards, Anthony Liguori > Cheers, > Jorge