Il 11/07/2012 03:17, liu ping fan ha scritto: > OK, I will move the creation in the CPU. But I think as part of qom, > DeviceState can have a DeviceState child, so there is need for wrapper > for the function. Maybe just make the qdev_create_kid(Object*) -> > qdev_create_kid(DeviceState*) ?
You can just use object_property_add_child whenever you would use qdev_create_kid. Paolo