From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEEgr-0001AC-60 for qemu-devel@nongnu.org; Wed, 19 Sep 2012 03:27:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEEgn-000580-5k for qemu-devel@nongnu.org; Wed, 19 Sep 2012 03:27:21 -0400 Received: from mail-wg0-f41.google.com ([74.125.82.41]:46269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEEgm-00057w-Vd for qemu-devel@nongnu.org; Wed, 19 Sep 2012 03:27:17 -0400 Received: by wgbds1 with SMTP id ds1so3836839wgb.4 for ; Wed, 19 Sep 2012 00:27:16 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <505973D2.1080407@redhat.com> Date: Wed, 19 Sep 2012 09:27:14 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1340664222-25098-1-git-send-email-aliguori@us.ibm.com> <1340664222-25098-5-git-send-email-aliguori@us.ibm.com> <4FF194CA.3090404@redhat.com> <4FF1957E.1050301@suse.de> <87boh39bhg.fsf@codemonkey.ws> In-Reply-To: <87boh39bhg.fsf@codemonkey.ws> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 4/4] vl: add -late-object to create QOM objects after machine init List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Stefan Hajnoczi , Markus Armbruster , qemu-devel@nongnu.org, Amit Shah , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Il 19/09/2012 01:07, Anthony Liguori ha scritto: >>>> In order to create qdev objects via -late-object, we almost always have to >>>> >>> specify the parent_bus which is usually created during machine init. Until we >>>> >>> properly support two stage init, introduce a -late-object option that allows for >>>> >>> creation of objects post-machine init. >>> >> >>> >> This is only needed for -device, no? So we can avoid introducing it and >>> >> just use -device. >> > >> > +1, was thinking along the same lines... > Sorry for such a delayed response... > > The semantics of how -device is different in that it implies realize. Yes, all I'm saying is, I don't see a need for -late-object since it is only needed for devices and we have a separate method to create them. Paolo