diff options
| author | Igor Mitsyanko | 2012-02-28 12:57:10 +0100 |
|---|---|---|
| committer | Anthony Liguori | 2012-03-14 21:30:38 +0100 |
| commit | aca59af612840772f18598363b65a25bf02bb569 (patch) | |
| tree | 1a0c14611c1eb9451a31331bec2a9836b3f6171e /include | |
| parent | kvmvapic: align start address as well as size (diff) | |
| download | qemu-aca59af612840772f18598363b65a25bf02bb569.tar.gz qemu-aca59af612840772f18598363b65a25bf02bb569.tar.xz qemu-aca59af612840772f18598363b65a25bf02bb569.zip | |
qom: if @instance_size==0, assign size of object to parent object size
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.
Set appropriate value for type instance_size during type_class_init() call.
object_initialize_with_type() must call type_class_init() before asserting
type->instance_size, and object_new_with_type() must call type_class_init() before
object allocation.
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
