Received: from eggs.gnu.org ([140.186.70.92]:58753) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUiIF-0001Ub-EH for qemu-devel@nongnu.org; Thu, 09 Jun 2011 12:41:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUiIC-0005Yc-GO for qemu-devel@nongnu.org; Thu, 09 Jun 2011 12:41:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11168) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUiIB-0005XY-Sr for qemu-devel@nongnu.org; Thu, 09 Jun 2011 12:41:12 -0400 From: Markus Armbruster References: <1307532813-27175-1-git-send-email-peter.maydell@linaro.org> <4DEF6B2B.7090305@siemens.com> Date: Thu, 09 Jun 2011 18:40:52 +0200 In-Reply-To: <4DEF6B2B.7090305@siemens.com> (Jan Kiszka's message of "Wed, 08 Jun 2011 14:29:31 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH RFC 0/3] basic support for composing sysbus devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Peter Maydell , Anthony Liguori , Juha =?utf-8?Q?Riihim=C3=A4ki?= , patches@linaro.org, qemu-devel@nongnu.org, Paul Brook Jan Kiszka writes: > On 2011-06-08 13:33, Peter Maydell wrote: >> At the moment you can't really implement one sysbus device by saying >> that it's composed of a set of other sysbus devices. This patch adds >> new functions sysbus_pass_mmio() and sysbus_pass_one_irq() which >> allow a sysbus device to delegate an MMIO or IRQ to another sysbus >> device (The approach is inspired by the existing sysbus_pass_irq() >> which lets a sysbus device delegate all its IRQs at once). >> >> This works; the most obvious deficiency is that the subcomponent >> device will still appear as its own device on the bus. >> >> So: is this a reasonable solution to the problem, or an unacceptable >> hack? Comments welcome :-) > > Sounds more like a little hack. :) > > The relationships should be expressed via qdev, not yet another > sysbus-specific extension. Generally, many services of sysbus should > rather be generic qdev things. Examples? > Is there anything that today prevents creating a local bus and attaching > the component devices to that? If it's multi-bus support, that should to > be added anyway. Passing-through of MMIO and IRQs is still a worthwhile > generic service, then probably qbus associated. Do you mean making the container device a sysbus-sysbus-bridge, then hanging the component devices off the inner sysbus?