From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jw3aV-0004uC-Eh for qemu-devel@nongnu.org; Tue, 13 May 2008 19:07:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jw3aT-0004tx-F8 for qemu-devel@nongnu.org; Tue, 13 May 2008 19:07:14 -0400 Received: from [199.232.76.173] (port=43866 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jw3aT-0004tt-A7 for qemu-devel@nongnu.org; Tue, 13 May 2008 19:07:13 -0400 Received: from hs-out-0708.google.com ([64.233.178.243]:5387) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jw3aT-000316-Bj for qemu-devel@nongnu.org; Tue, 13 May 2008 19:07:13 -0400 Received: by hs-out-0708.google.com with SMTP id k27so2307650hsc.2 for ; Tue, 13 May 2008 16:07:11 -0700 (PDT) Message-ID: <482A1F1C.2020902@codemonkey.ws> Date: Tue, 13 May 2008 18:07:08 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1210713545-11916-1-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1210713545-11916-1-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Add support for a configuration file Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org, Paul Brook 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 } or even: drive: file=foo.img if=scsi Basically, I'm looking for a syntax for sub-options. This would be useful for -drive or -net but I also think would lay the foundations for specifying a full machine config. It would get very unwieldy on the command line to have a large number of suboptions but it works reasonably well within a config. Regards, Anthony Liguori