Received: from eggs.gnu.org ([2001:4830:134:3::10]:50905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW5CC-0005GB-3W for qemu-devel@nongnu.org; Tue, 15 Oct 2013 10:02:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VW5C4-0008Fo-6C for qemu-devel@nongnu.org; Tue, 15 Oct 2013 10:02:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VW5C3-0008Fb-Um for qemu-devel@nongnu.org; Tue, 15 Oct 2013 10:01:52 -0400 From: Markus Armbruster References: <1381416174-5110-1-git-send-email-armbru@redhat.com> <878uxuiux3.fsf@blackfin.pond.sub.org> Date: Tue, 15 Oct 2013 16:01:47 +0200 In-Reply-To: (Peter Maydell's message of "Tue, 15 Oct 2013 13:37:39 +0100") Message-ID: <87iowyd450.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] Why is TYPE_CPU no-user? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , Andreas =?utf-8?Q?F=C3=A4rbe?= =?utf-8?Q?r?= Peter Maydell writes: > On 15 October 2013 13:24, Markus Armbruster wrote: >> To go beyond RFC with this series, I need to explain why TYPE_CPU >> cannot_instantiate_with_device_add_yet. > > ...isn't this just because it's an abstract type? Abstract types have TypeInfo member abstract set. Not inherited by subtypes, obviously. DeviceClass member cannot_instantiate_with_device_add_yet is something else entirely. After this series, it means what the name suggests. Unlike abstract, it's effectively inherited. TypeInfo's abstract is here to stay, but DeviceClass's cannot_instantiate_with_device_add_yet should eventually go away. TYPE_CPU has both of them set.