Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MF7Ew-0005Bm-Qo for qemu-devel@nongnu.org; Fri, 12 Jun 2009 09:56:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MF7Er-00059d-W5 for qemu-devel@nongnu.org; Fri, 12 Jun 2009 09:56:18 -0400 Received: from [199.232.76.173] (port=47649 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MF7Er-00059Z-Rj for qemu-devel@nongnu.org; Fri, 12 Jun 2009 09:56:13 -0400 Received: from mx2.redhat.com ([66.187.237.31]:48446) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MF7Ep-0008PF-7C for qemu-devel@nongnu.org; Fri, 12 Jun 2009 09:56:13 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5CDu9pY027977 for ; Fri, 12 Jun 2009 09:56:09 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5CDu7Wn016491 for ; Fri, 12 Jun 2009 09:56:08 -0400 Received: from pike.pond.sub.org (vpn-10-124.str.redhat.com [10.32.10.124]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5CDu6VA008118 for ; Fri, 12 Jun 2009 09:56:07 -0400 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> <4A3211E7.1090302@redhat.com> From: Markus Armbruster Date: Fri, 12 Jun 2009 15:56:05 +0200 In-Reply-To: <4A3211E7.1090302@redhat.com> (Gerd Hoffmann's message of "Fri\, 12 Jun 2009 10\:29\:27 +0200") Message-ID: <87my8d1rpm.fsf@pike.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Gerd Hoffmann writes: >> 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 For what it's worth, that's how my prototype worked. Start with a minimal, fixed tree for the machine type, then edit it according to options.