From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwI5S-0004aK-J5 for qemu-devel@nongnu.org; Wed, 14 May 2008 10:36:10 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwI5Q-0004YN-Sx for qemu-devel@nongnu.org; Wed, 14 May 2008 10:36:10 -0400 Received: from [199.232.76.173] (port=51763 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwI5Q-0004YD-Jn for qemu-devel@nongnu.org; Wed, 14 May 2008 10:36:08 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]:48856) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwI5Q-0003He-8x for qemu-devel@nongnu.org; Wed, 14 May 2008 10:36:08 -0400 Received: by ug-out-1314.google.com with SMTP id j40so1180043ugd.4 for ; Wed, 14 May 2008 07:36:03 -0700 (PDT) Message-ID: Date: Wed, 14 May 2008 16:36:03 +0200 From: "andrzej zaborowski" Subject: Re: [Qemu-devel] Re: [PATCH] Add support for a configuration file In-Reply-To: <482A1F1C.2020902@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1210713545-11916-1-git-send-email-aliguori@us.ibm.com> <482A1F1C.2020902@codemonkey.ws> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm-devel@lists.sourceforge.net, Anthony Liguori On 14/05/2008, Anthony Liguori wrote: > Anthony Liguori wrote: > > > I think this is pretty useful as-is. I think it also gives us a > reasonable > > way to move forward that will keep everyone pretty happy. > > > > Here's a short example: > > > > qemu-system-x86_64 -hda ~/images/linux.img -snapshot -vnc :2 > > > > Would become `foo.qemu': > > > > # Main disk image > > hda=/home/anthony/images/linux.img > > > > # Redirect disk writes to a temporary image > > snapshot > > > > # Make the graphical display available on port 5902 > > vnc=:2 > > > > With: > > > > qemu-system-x86_64 -config foo.qemu > > > > One thought I had, is that it would be very nice to break up the -drive > file=foo.img,if=scsi syntax within the config file. In general, I'm > thinking something like: > > [drive] > file=foo.img > if=scsi > > or: > > drive { > file=foo.img > if=scsi > } I like this one and it would be nice to be able to replace the equal sign with whitespace. What I'd love, though, but expect others will consider bloat, is that files are passed through cpp before interpreting. This way the syntax becomes not (much) less powerful than the current command line invocation where you get variable expansion for free. I would hate to type in some things in as many times as there are instances of a given hardware. Consider some disk arrays or the once discussed -pins switch for initial state of pins or jumpers (some machines have hundreds of them). -- Please do not print this email unless absolutely necessary. Spread environmental awareness.