From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NI30v-0002zN-SO for qemu-devel@nongnu.org; Tue, 08 Dec 2009 11:34:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NI30r-0002u9-0m for qemu-devel@nongnu.org; Tue, 08 Dec 2009 11:34:13 -0500 Received: from [199.232.76.173] (port=38213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NI30q-0002tz-Qr for qemu-devel@nongnu.org; Tue, 08 Dec 2009 11:34:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:64897) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NI30q-0004f4-Dp for qemu-devel@nongnu.org; Tue, 08 Dec 2009 11:34:08 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nB8GY72O019041 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Dec 2009 11:34:07 -0500 Message-ID: <4B1E7FFB.1000104@redhat.com> Date: Tue, 08 Dec 2009 17:34:03 +0100 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [FOR 0.12 PATCH v3 10/21] default devices: add global cmd line option. References: <1862782368.1376061260288689974.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> In-Reply-To: <1862782368.1376061260288689974.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org On 12/08/09 17:11, Paolo Bonzini wrote: >>>> Add global command line option to disable default devices. >>> >>> Should -readconfig imply this? >> >> Hmm, not sure. Why do you think this would be useful? > > Here is my thinking: if you used -writeconfig, your machine description > is (at least in theory) entirely included in the config file including > (again in theory) the default devices. The default devices are *not* included by in the file created by -writeconfig. So I tend to thing -readconfig should not automagically turn on -nodefaults to avoid unpleasent surprises for users. Devices created via -readconfig are treated like devices created via [device] sections in the config file. So it doesn't matter whenever you configure your isa-serial device via command line or config file, in any case it will make qemu not create the default serial port. cheers, Gerd