From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MF9iv-0000Es-RU for qemu-devel@nongnu.org; Fri, 12 Jun 2009 12:35:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MF9ir-0000D1-Cn for qemu-devel@nongnu.org; Fri, 12 Jun 2009 12:35:25 -0400 Received: from [199.232.76.173] (port=51035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF9ir-0000Cv-3n for qemu-devel@nongnu.org; Fri, 12 Jun 2009 12:35:21 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:44087) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MF9iq-0000QK-EM for qemu-devel@nongnu.org; Fri, 12 Jun 2009 12:35:21 -0400 Received: by bwz23 with SMTP id 23so1990941bwz.34 for ; Fri, 12 Jun 2009 09:35:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4A326DF1.3040406@codemonkey.ws> References: <20090610173803.4674.82538.stgit@wren.home> <4A30FE41.1040907@redhat.com> <200906111418.43669.paul@codesourcery.com> <4A3208F7.4030806@kevin-wolf.de> <87vdn11rzy.fsf@pike.pond.sub.org> <4A326498.90801@kevin-wolf.de> <4A326DF1.3040406@codemonkey.ws> Date: Fri, 12 Jun 2009 19:35:16 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH 0/4] Machine config files From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Markus Armbruster , qemu-devel@nongnu.org On 6/12/09, Anthony Liguori wrote: > Kevin Wolf wrote: > > > Markus Armbruster schrieb: > > Don't get me wrong, I'm not against configuration files. Having them is > > great and probably I'd even find some uses for them occasionally. I just > > don't want to be _forced_ to use them which I fear is what Paul is > > talking about. > > > > > > What we need is a command line option that can be used to manipulate a > device tree. All of the existing options could then be implemented in terms > of the former option. > > There will probably be a lot of things in the future that you can only do > via device tree manipulation. I don't see any reason why not to add > convenient syntax though for the most common things. -fdt_change /cpus/cpu@0/clock-frequency 0x20000000 -fdt_delete /plb/obp/serial@ef600400 -fdt_add /plb/obp/serial@ef600500 serial (this is complicated) But I fear we would be replicating basic awk functionality. An external tool for manipulating the tree may still be useful.