]> git.proxmox.com Git - qemu.git/commit - qdev-monitor.c
qdev: add children before qdev_init
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Mar 2012 16:38:46 +0000 (18:38 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 2 Apr 2012 20:04:15 +0000 (15:04 -0500)
commitf424d5c4c9de67b56594384eac3c08dc33de9344
tree0559a455e18c7b0cd342c33e11474702685dca1e
parenta612b2a6635fa1a3a29a8bcf41b31f1f3fae1110
qdev: add children before qdev_init

We want the composition tree to to be in order by the time we call
qdev_init, so that a single set of the toplevel realize property can
propagate all the way down the composition tree.

This is not the case so far.  Unfortunately, this is incompatible
with calling qdev_init in the constructor wrappers for devices,
so for now we need to unattach some devices that are created through
those wrappers.  This will be fixed by removing qdev_init and instead
setting the toplevel realize property after machine init.

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pc_piix.c
hw/piix_pci.c
hw/ppc_prep.c
hw/qdev-monitor.c