]> git.proxmox.com Git - mirror_qemu.git/commit - include/hw/qdev-core.h
qdev: Prepare "realized" property
authorAndreas Färber <afaerber@suse.de>
Wed, 9 Jan 2013 02:58:11 +0000 (03:58 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 16 Jan 2013 00:27:00 +0000 (18:27 -0600)
commit249d41720b7dfbb5951b430b9eefdbee7464f515
treed6d7fe5f8d4793c1fe9aaf3c1064e66554c0d3f4
parent7983c8a335dd09fec49f99a44d4404aa87828c0a
qdev: Prepare "realized" property

Introduce the QOM realizefn suggested by Anthony.
Detailed documentation is supplied in the qdev header.

For now this implements a default DeviceClass::realize callback that
just wraps DeviceClass::init, which it deprecates.
Once all devices have been converted to DeviceClass::realize,
DeviceClass::init is to be removed.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Cc: Anthony Liguori <anthony@codemonkey.ws>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-core.h
hw/qdev.c