Hello Anthony, Here's a mini series introducing ObjectClass::realize(Object *) and forwarding it to existing DeviceClass::init(DeviceState *).
I've also added a convenience wrapper for setting the "realized" property and doing error checking and exit, tested with the SH7750 SoC. Regards, Andreas Cc: Anthony Liguori <anth...@codemonkey.ws> Cc: Paolo Bonzini <pbonz...@redhat.com> Cc: Wanpeng Li <l...@linux.vnet.ibm.com> Andreas Färber (3): qom: Add "realized" property to Object qom: Introduce object_realize() qdev: Hook up DeviceClass::init to ObjectClass::realize hw/qdev.c | 13 +++++++++++++ include/qemu/object.h | 11 +++++++++++ qom/object.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 0 deletions(-) -- 1.7.7