From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:51405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2IbV-0004jM-W3 for qemu-devel@nongnu.org; Tue, 28 Feb 2012 03:40:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2IbP-0002Lg-MD for qemu-devel@nongnu.org; Tue, 28 Feb 2012 03:40:13 -0500 Received: from plane.gmane.org ([80.91.229.3]:35053) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2IbP-0002Jr-FV for qemu-devel@nongnu.org; Tue, 28 Feb 2012 03:40:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S2IbK-0003UB-Fb for qemu-devel@nongnu.org; Tue, 28 Feb 2012 09:40:02 +0100 Received: from 93-34-182-16.ip50.fastwebnet.it ([93.34.182.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 09:40:02 +0100 Received: from pbonzini by 93-34-182-16.ip50.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Feb 2012 09:40:02 +0100 From: Paolo Bonzini Date: Tue, 28 Feb 2012 09:39:49 +0100 Message-ID: References: <1330413510-9289-1-git-send-email-i.mitsyanko@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit In-Reply-To: <1330413510-9289-1-git-send-email-i.mitsyanko@samsung.com> Subject: Re: [Qemu-devel] [PATCH] qom: if @instance_size==0, assign size of object to parent object size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Il 28/02/2012 08:18, Igor Mitsyanko ha scritto: > QOM documentation states that for objects of type with @instance_size == 0 size > will be assigned to match parent object's size. But currently this feauture is > not implemented and qemu asserts during creation of object with zero instance_size. > This patch adjusts actual behaviour in accordance with documentation. You can do it just once, in type_get_parent instead. Paolo