From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyjrW-00055U-9G for qemu-devel@nongnu.org; Fri, 16 Oct 2009 06:16:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyjrR-00053N-2J for qemu-devel@nongnu.org; Fri, 16 Oct 2009 06:16:41 -0400 Received: from [199.232.76.173] (port=39964 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyjrQ-000533-Nj for qemu-devel@nongnu.org; Fri, 16 Oct 2009 06:16:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43795) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyjrQ-0005IS-BH for qemu-devel@nongnu.org; Fri, 16 Oct 2009 06:16:36 -0400 Message-ID: <4AD847FE.1000306@redhat.com> Date: Fri, 16 Oct 2009 12:16:30 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 0/4] QemuOpts: config file support. References: <1255509568-10635-1-git-send-email-kraxel@redhat.com> <4AD62006.4080008@codemonkey.ws> In-Reply-To: <4AD62006.4080008@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org > What I really want to do, which I don't think is possibly in right now, is: > > [net "default"] > type=tap > script=/etc/qemu-ifup-bridge > > In /etc/qemurc to globally change from slirp default to tap default. Of > course, why stop there, we should install an /etc/qemurc by default with: > > [net "default"] > type=user > host=10.0.1.2 > net=10.0.1.0/24 > dhcpstart=10.0.1.10 > dns=10.0.1.2 > > And completely get rid of any baked in defaults. Yes. Kill all these automagic devices from qemu, move them into config files. So long-term we'll have something like: /usr/share/qemu/boards/pc.dtc -> your virtual mainboard, i.e. all piix3/4 and core stuff like pic, apic, ... /usr/share/qemu/defaults/pc.conf -> useful default configuration for pc, i.e. cirrus vga, e1000 nic, serial port, parallel port, cdrom drive, ... /etc/qemu/host.conf -> host-wide config, i.e. slirp networking, maybe chardevs for serial0+parallel0, ... $HOME/.qemu.conf (maybe) -> user-wide config qemu would (by default) read all these files in the specified order, additionally a virtual-machine config file specified on the command line. Asking qemu to NOT read defaults/pc.conf would zap all default devices from your configuration. Maybe it is useful to have some kind of profiles, i.e. /etc/qemu/default.conf, /etc/qemu/nographic.conf, ... cheers, Gerd