On 02/28/2012 12:39 PM, Paolo Bonzini wrote:
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



Can't understand how type_get_parent() is relevant to this, we can call object_initialize() or object_new_with_type() and these two functions must set instance_size before calling object_initialize_with_type(). Up to this point there are no calls to type_get_parent().

Mitsyanko Igor
ASWG, Moscow R&D center, Samsung Electronics
email: i.mitsya...@samsung.com


Reply via email to