From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:35649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPWoX-0006Kf-HI for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:34:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPWoW-0003rx-91 for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:34:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPWoW-0003ql-1H for qemu-devel@nongnu.org; Tue, 09 Apr 2013 07:34:12 -0400 Message-ID: <5163FCA4.1020409@redhat.com> Date: Tue, 09 Apr 2013 13:33:56 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1365172636-28628-1-git-send-email-imammedo@redhat.com> <1365172636-28628-20-git-send-email-imammedo@redhat.com> In-Reply-To: <1365172636-28628-20-git-send-email-imammedo@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 18/22] target-i386: move IOAPIC to ICC bus List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: aliguori@us.ibm.com, ehabkost@redhat.com, claudio.fontana@huawei.com, qemu-devel@nongnu.org, aderumier@odiso.com, lcapitulino@redhat.com, jfrei@linux.vnet.ibm.com, yang.z.zhang@intel.com, afaerber@suse.de, lig.fnst@cn.fujitsu.com, rth@twiddle.net Il 05/04/2013 16:37, Igor Mammedov ha scritto: > + const char *ioapic_name = "ioapic"; > > if (kvm_irqchip_in_kernel()) { > - dev = qdev_create(NULL, "kvm-ioapic"); > - } else { > - dev = qdev_create(NULL, "ioapic"); > - } > - if (parent_name) { > - object_property_add_child(object_resolve_path(parent_name, NULL), > - "ioapic", OBJECT(dev), NULL); > + ioapic_name = "kvm-ioapic"; > } > - qdev_init_nofail(dev); > - d = SYS_BUS_DEVICE(dev); > - sysbus_mmio_map(d, 0, IO_APIC_DEFAULT_ADDRESS); > + object_property_set_str(OBJECT(dev), ioapic_name, "ioapic-type", NULL); Why do you need this? Having the IOAPIC as a QOM child of the icc-bridge is not too important, I think. Perhaps not even too correct... Paolo