Received: from eggs.gnu.org ([2001:4830:134:3::10]:48484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvVPQ-000608-UV for qemu-devel@nongnu.org; Tue, 24 Dec 2013 12:04:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VvVPK-00045O-Q4 for qemu-devel@nongnu.org; Tue, 24 Dec 2013 12:04:44 -0500 Received: from cantor2.suse.de ([195.135.220.15]:54400 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VvVPK-00044u-HY for qemu-devel@nongnu.org; Tue, 24 Dec 2013 12:04:38 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 24 Dec 2013 18:04:15 +0100 Message-Id: <1387904675-7962-5-git-send-email-afaerber@suse.de> In-Reply-To: <1387904675-7962-1-git-send-email-afaerber@suse.de> References: <1387904675-7962-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL v2 04/24] apic: Document why cannot_instantiate_with_device_add_yet List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , =?UTF-8?q?Andreas=20F=C3=A4rber?= From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Peter Maydell Signed-off-by: Andreas F=C3=A4rber --- hw/intc/apic_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c index ea420c7..aaef054 100644 --- a/hw/intc/apic_common.c +++ b/hw/intc/apic_common.c @@ -386,9 +386,13 @@ static void apic_common_class_init(ObjectClass *klas= s, void *data) =20 dc->vmsd =3D &vmstate_apic_common; dc->reset =3D apic_reset_common; - dc->cannot_instantiate_with_device_add_yet =3D true; /* FIXME explai= n why */ dc->props =3D apic_properties_common; idc->init =3D apic_init_common; + /* + * Reason: APIC and CPU need to be wired up by + * x86_cpu_apic_create() + */ + dc->cannot_instantiate_with_device_add_yet =3D true; } =20 static const TypeInfo apic_common_type =3D { --=20 1.8.4