Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXI01-0007VD-Bo for qemu-devel@nongnu.org; Wed, 11 Feb 2009 11:31:45 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXHzz-0007Sf-OC for qemu-devel@nongnu.org; Wed, 11 Feb 2009 11:31:44 -0500 Received: from [199.232.76.173] (port=40206 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXHzz-0007SN-CT for qemu-devel@nongnu.org; Wed, 11 Feb 2009 11:31:43 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:60074) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXHzy-0002Tx-MA for qemu-devel@nongnu.org; Wed, 11 Feb 2009 11:31:42 -0500 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id n1BGVZuX021563 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 11 Feb 2009 08:31:38 -0800 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1LXHzq-0004SX-Ux for qemu-devel@nongnu.org; Wed, 11 Feb 2009 16:31:34 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18834.64870.951989.714873@mariner.uk.xensource.com> Date: Wed, 11 Feb 2009 16:31:34 +0000 Subject: Re: [Qemu-devel] [RFC] Machine description as data In-Reply-To: <87iqnh6kyv.fsf@pike.pond.sub.org> References: <87iqnh6kyv.fsf@pike.pond.sub.org> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Markus Armbruster writes ("[Qemu-devel] [RFC] Machine description as data"): > [stuff] Yes, this is a good approach. I have one question though: > Define an internal machine configuration data structure. Needs to be > sufficiently generic to be able to support even oddball machine > types. Make it a decorated tree, i.e. a tree of named nodes with > named properties. Many real systems are not strictly tree-structured, because there are hardware devices which connect via several different paths. For example, much hardware supported by OpenWRT comes with a built-in bridge chip connected internally to a hidden ethernet card; a tape library would have one interface for the robot and a bunch of SCSI tapereaders; etc. When an emulation of such a device starts up, it will want to bind to several parents. How will you represent this ? Ian.