Received: from eggs.gnu.org ([140.186.70.92]:37480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV2cG-00073w-K7 for qemu-devel@nongnu.org; Fri, 10 Jun 2011 10:23:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QV2cE-0000aj-It for qemu-devel@nongnu.org; Fri, 10 Jun 2011 10:23:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QV2cE-0000aZ-3v for qemu-devel@nongnu.org; Fri, 10 Jun 2011 10:23:14 -0400 From: Markus Armbruster References: <1307532813-27175-1-git-send-email-peter.maydell@linaro.org> <4DEF6B2B.7090305@siemens.com> <4DF0FCDA.5070804@siemens.com> <4DF21334.2070204@us.ibm.com> <4DF21F97.4070709@siemens.com> Date: Fri, 10 Jun 2011 16:22:57 +0200 In-Reply-To: (Peter Maydell's message of "Fri, 10 Jun 2011 14:50:46 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Peter Maydell Cc: Anthony Liguori , Juha =?utf-8?Q?Riihim=C3=A4ki?= , "patches@linaro.org" , Jan Kiszka , "qemu-devel@nongnu.org" , Paul Brook Peter Maydell writes: > On 10 June 2011 14:43, Jan Kiszka wrote: >> On 2011-06-10 15:10, Peter Maydell wrote: >>> This makes the wiring of this signal look like a property of the >>> isa-serial device, which is a bit odd, since it's just as much >>> a property of the piix3. Actually it's neither, it's a property >>> of the machine model, and you might actually want a syntax a bit >>> more like: >>> >>> =C2=A0piix3 =3D piix3(property=3Dvalue, property=3Dvalue...); >>> =C2=A0serial =3D isa-serial(property=3Dvalue...); >>> =C2=A0connect(serial.irq, piix3.irq[3]); >> >> In fact, in the ISA case, it is a device property: The device, and only >> the device decides which IRQ to use - from the bus it is attached to. So >> attaching an ISA device to the bus of an ISA bridge like the PIIX3 and >> selecting local IRQ 3 are the steps we can already express today. > > Ah, in that case Anthony's suggestion of > -device piix3,id=3Dpiix3 -device isa-serial,id=3Dserial,irq=3Dpiix3.irq= [3] > wrong in a different way -- the isa-serial shouldn't care > what other device is providing the ISA bus it is sitting on, > it just has a property of which ISA irq line it is using > (and rely on an isa bus abstraction to wire things up at > the machine model level). [As you say, this works now.] > > But I think that's a non-typical case compared to the usual one > of "these wires are just hardwired this way by the machine". IIRC, the PCI bus also provides a number of IRQ lines for the device to tickle (INTA#..INTD#). There's rarely a need to configure their use, though.