Received: from eggs.gnu.org ([2001:4830:134:3::10]:49324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btbqB-0004ky-V9 for qemu-devel@nongnu.org; Mon, 10 Oct 2016 10:46:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1btbq5-0002h5-4g for qemu-devel@nongnu.org; Mon, 10 Oct 2016 10:46:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1btbq4-0002gt-UQ for qemu-devel@nongnu.org; Mon, 10 Oct 2016 10:46:01 -0400 References: <20160926101627.14296-1-lma@suse.com> <20160926101627.14296-2-lma@suse.com> <20160926103703.GF18393@redhat.com> <57FC170302000062000A2689@prv-mh.provo.novell.com> From: Paolo Bonzini Message-ID: Date: Mon, 10 Oct 2016 16:45:56 +0200 MIME-Version: 1.0 In-Reply-To: <57FC170302000062000A2689@prv-mh.provo.novell.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] =?utf-8?b?562U5aSN77yaIFJlOiAgW1BBVENIIHYzIDEvM10g?= =?utf-8?q?qom=3A_make_base_type_user-creatable_abstract?= List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lin Ma , "Daniel P. Berrange" Cc: qemu-devel@nongnu.org, armbru@redhat.com, afaerber@suse.de On 10/10/2016 16:32, Lin Ma wrote: >>This doesn't make any conceptual sense. UserCreatable is an inteface an= d >>by definition all interfaces are abstract. > > Sorry for the late reply, I was on vacation. > oh...indeed, add '.abstract =3D true' for an interface is not a good id= ea. Perhaps Lin Ma's patch actually made some sense. If all interfaces are abstract, why shouldn't object_class_is_abstract say so? The right fix then would be to add a new check in there, using type_is_ancestor(..., type_interface). This would also fix object_new_with_propv. Paolo