Received: from eggs.gnu.org ([208.118.235.92]:56309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tja8Z-0001TZ-3M for qemu-devel@nongnu.org; Fri, 14 Dec 2012 13:37:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tja8X-0007FS-Oy for qemu-devel@nongnu.org; Fri, 14 Dec 2012 13:37:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tja8X-0007FK-GR for qemu-devel@nongnu.org; Fri, 14 Dec 2012 13:37:29 -0500 Date: Fri, 14 Dec 2012 15:56:33 -0200 From: Eduardo Habkost Message-ID: <20121214175632.GC3236@otherpad.lan.raisama.net> References: <1354726153-30264-1-git-send-email-ehabkost@redhat.com> <1354726153-30264-9-git-send-email-ehabkost@redhat.com> <50C887D0.7050704@suse.de> <20121212135901.GD3236@otherpad.lan.raisama.net> <20121212152724.7693d277@nial.usersys.redhat.com> <50CB45CF.5000709@suse.de> <50CB4851.6040208@redhat.com> <50CB4958.3080102@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50CB4958.3080102@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 8/8] qom: Make CPU a child of DeviceState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Paolo Bonzini , Don Slutz , qemu-devel@nongnu.org, Anthony Liguori , Igor Mammedov On Fri, Dec 14, 2012 at 04:44:24PM +0100, Andreas F=E4rber wrote: > Am 14.12.2012 16:40, schrieb Paolo Bonzini: > > Il 14/12/2012 16:29, Andreas F=E4rber ha scritto: > >> The latest motivation for making the CPU a device was to have the st= atic > >> properties infrastructure for machine/CPU versioning. The global > >> property defaults are set in qdev's instance_init, so object_new() s= eems > >> fine for that. > >> > >> qdev_[try_]create() would further set the parent bus to SysBus if NU= LL. > >> The CPU is not a SysBusDevice so I think not using qdev_create() may= be > >> safer... Maybe Anthony or Paolo can confirm? > >=20 > > I think various parts of qdev assume there is a bus, so actually usin= g > > SysBus would be safer (though uglier). >=20 > Hm, Anthony told me with one of his qbus refactoring patches back in > qom-next the last remaining assumptions (info qdm) were removed... >=20 > Probably we're the first to test though. ;) BTW, we're also not including SysBus, on *-user. --=20 Eduardo