From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mxyuh-00033t-O1 for qemu-devel@nongnu.org; Wed, 14 Oct 2009 04:08:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mxyuc-0002xP-NL for qemu-devel@nongnu.org; Wed, 14 Oct 2009 04:08:50 -0400 Received: from [199.232.76.173] (port=43446 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mxyub-0002xB-ON for qemu-devel@nongnu.org; Wed, 14 Oct 2009 04:08:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2779) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mxyub-0007XQ-8e for qemu-devel@nongnu.org; Wed, 14 Oct 2009 04:08:45 -0400 Message-ID: <4AD58706.4090404@redhat.com> Date: Wed, 14 Oct 2009 10:08:38 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH v2 9/9] Add -kvm option References: <1254953315-5761-2-git-send-email-glommer@redhat.com> <1254953315-5761-3-git-send-email-glommer@redhat.com> <1254953315-5761-4-git-send-email-glommer@redhat.com> <1254953315-5761-5-git-send-email-glommer@redhat.com> <1254953315-5761-6-git-send-email-glommer@redhat.com> <1254953315-5761-7-git-send-email-glommer@redhat.com> <1254953315-5761-8-git-send-email-glommer@redhat.com> <1254953315-5761-9-git-send-email-glommer@redhat.com> <1254953315-5761-10-git-send-email-glommer@redhat.com> <4ACD1D92.8080607@us.ibm.com> <20091007231405.GQ8092@mothafucka.localdomain> <4ACD2414.9000401@codemonkey.ws> <4AD319F6.70506@redhat.com> <4AD33774.1030001@us.ibm.com> <4AD34C75.8090803@redhat.com> <4AD359E6.50108@us.ibm.com> <4AD434BB.1080102@redhat.com> <4AD49DDA.8060101@us.ibm.com> <87eip79ju6.fsf@pike.pond.sub.org> <4AD4E663.6010004@codemonkey.ws> In-Reply-To: <4AD4E663.6010004@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: Anthony Liguori , Glauber Costa , Markus Armbruster , qemu-devel@nongnu.org Hi, > I think what you're arguing for is a truly bare bones machine type where > there are no assumptions about having a first nic. > > But let's look at this from a much higher level. What is a user > typically going to want to do? They're probably going to want to change > the networking settings globally. They'll either want to always use tap > and use the default network device or they're going to want to always > have two nics because they have to physical devices with separate networks. > > A user would either create a new machine type to use for all of their > machines, or they would modify a global host config to change from slirp > to tap. It shouldn't be the common case that they are manually > specifying -device command line options. -device is pretty obtuse and > really is an expert option for things like libvirt and as a placeholder > for a proper config. Time to polish and post my config file patches for discussion ... I expect we'll have *two* kinds of config files: #1 describes a machine type, i.e. -M $machine with only the really essential hardware. Users should not have to deal with this at all. Something like the dtc bits from pbrook. #2 describes the configuration of a virtual machine, i.e. what additional devices are plugged in, virtual disks, network setup, ... I have patches for #2 which essentially read/write QemuOpts to a git-style config file. We could simply ship a type #2 default config file with nic, vga, serial etc. Or two, with the second being the -nographic variant. cheers, Gerd