From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MF2B3-0007OM-RO for qemu-devel@nongnu.org; Fri, 12 Jun 2009 04:31:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MF2Az-0007NK-Ke for qemu-devel@nongnu.org; Fri, 12 Jun 2009 04:31:57 -0400 Received: from [199.232.76.173] (port=58778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF2Az-0007NF-G4 for qemu-devel@nongnu.org; Fri, 12 Jun 2009 04:31:53 -0400 Received: from mx2.redhat.com ([66.187.237.31]:52199) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MF2Ay-0001RT-B1 for qemu-devel@nongnu.org; Fri, 12 Jun 2009 04:31:53 -0400 Message-ID: <4A3211E7.1090302@redhat.com> Date: Fri, 12 Jun 2009 10:29:27 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 3/4] Stellaris machine config References: <20090610173803.4674.82538.stgit@wren.home> <20090610173829.4674.2315.stgit@wren.home> <20090611163217.GA12367@shareable.org> In-Reply-To: <20090611163217.GA12367@shareable.org> 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: Jamie Lokier Cc: qemu-devel@nongnu.org, M P , Paul Brook > I guess FDT is missing a "#include" equivalent, and possibly name > constants. See: http://git.jdl.com/gitweb/?p=dtc.git;a=blob;f=Documentation/manual.txt;h=f8a8a7b482e3a2a1501614c94fa0ea87aeb3a9e7;hb=HEAD There is: /include/ "filename" > But for QEMU, some way to give names to, say, a standard SoC or a > basic board, or a PC without peripherals, and then refer to them in > another FDT tree, would be useful. Yes, that must be solved somehow. Just punting the issue to the vm management software isn't acceptable IMHO. I'm not sure includes will solve that issue. What we need is more a tree merge, i.e. you could have basic config files for a few pc variants without devices (i.e. isapc, pc) and config files snippets for devices (ide interface foo, sound card bar, ...). Then you need some way to merge the latter into the former. Even that solves only a part of the problem. For some options you effectively have to edit the device tree: -m You have edit memory@0 node. You even might have to add a node depending on the amount of memory (i.e. one for the memory below 4G one for the memory above ...). -cpu You have to edit the cpu node. -smp You have to insert cpu nodes. cheers, Gerd