Received: from eggs.gnu.org ([140.186.70.92]:44439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTsRo-0004dr-Ks for qemu-devel@nongnu.org; Tue, 07 Jun 2011 05:19:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTsRn-0004lW-49 for qemu-devel@nongnu.org; Tue, 07 Jun 2011 05:19:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTsRm-0004lI-Nz for qemu-devel@nongnu.org; Tue, 07 Jun 2011 05:19:38 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p579JbLk019105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 7 Jun 2011 05:19:37 -0400 From: Markus Armbruster References: <1307369780-28189-1-git-send-email-pbonzini@redhat.com> <1307369780-28189-4-git-send-email-pbonzini@redhat.com> <4DEDE9E6.5030304@redhat.com> Date: Tue, 07 Jun 2011 11:19:35 +0200 In-Reply-To: <4DEDE9E6.5030304@redhat.com> (Paolo Bonzini's message of "Tue, 07 Jun 2011 11:05:42 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v3 3/3] spapr: make irq customizable via qdev List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Paolo Bonzini writes: > On 06/07/2011 09:51 AM, Markus Armbruster wrote: >>> > diff --git a/hw/spapr_vio.c b/hw/spapr_vio.c >>> > index 6f34159..a193caa 100644 >>> > --- a/hw/spapr_vio.c >>> > +++ b/hw/spapr_vio.c >>> > @@ -52,6 +52,10 @@ >>> > static struct BusInfo spapr_vio_bus_info = { >>> > .name = "spapr-vio", >>> > .size = sizeof(VIOsPAPRBus), >>> > + .props = (Property[]) { >>> > + DEFINE_PROP_UINT32("irq", VIOsPAPRDevice, vio_irq_num, 0), \ >>> > + DEFINE_PROP_END_OF_LIST(), >>> > + }, >>> > }; >> >> Out of this patch's scope, but I need to ask anyway: do devices on a >> spapr-vio bus have a unique address? If yes, what is it? > > That would be the "reg" value in DEFINE_SPAPR_PROPERTIES (patch 2). I > didn't make it a bus property because the default values varies > according to the device type. Hmm. Explain that in a comment where the bus property would go? >> Is it okay to share interrupts? > > Seems to work. :) Fair enough.