From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1OyU-0002Yg-QO for qemu-devel@nongnu.org; Sat, 25 Feb 2012 16:16:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1OyN-0002iP-42 for qemu-devel@nongnu.org; Sat, 25 Feb 2012 16:16:14 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:34617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1OyM-0002iH-UA for qemu-devel@nongnu.org; Sat, 25 Feb 2012 16:16:07 -0500 Received: by pbbro12 with SMTP id ro12so4739831pbb.4 for ; Sat, 25 Feb 2012 13:16:06 -0800 (PST) Message-ID: <4F494F91.1000509@codemonkey.ws> Date: Sat, 25 Feb 2012 15:16:01 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1330198969-27364-1-git-send-email-aliguori@us.ibm.com> <1330198969-27364-8-git-send-email-aliguori@us.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 07/10] qtest: IRQ interception infrastructure (v2) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Jan Kiszka , qemu-devel@nongnu.org On 02/25/2012 02:20 PM, Paolo Bonzini wrote: > On 02/25/2012 08:42 PM, Anthony Liguori wrote: >> @@ -224,7 +223,9 @@ static void pc_init1(MemoryRegion *system_memory, >> gsi_state->i8259_irq[i] = i8259[i]; >> } >> if (pci_enabled) { >> - ioapic_init(gsi_state); >> + dev = ioapic_init(gsi_state); >> + object_property_add_child(object_resolve_path("/i440fx/piix3", NULL), >> + "ioapic", OBJECT(dev), NULL); >> } >> >> pc_register_ferr_irq(gsi[13]); > > Jan objected to putting this under /i440fx/piix3. It's not technically part of the PIIX3 packaging, but the I/O APIC is attached to the PIIX3 and it's I/O requests propagate through the I/O APIC. See section 8.12 of the PIIX4 manual. I think for our model, having it as a child property makes quite a lot of sense. Regards, Anthony Liguori > Paolo > >