qdev: Set globals in instance_post_init function
commit99a0b03650176340ab6667fa1e5711a4552d4494
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 10 Jul 2013 20:08:42 +0000 (10 17:08 -0300)
committerAndreas Färber <afaerber@suse.de>
Fri, 16 Aug 2013 16:44:33 +0000 (16 18:44 +0200)
treeea56cf5609df9202402efd8b04942f9ebafd9dbd
parent8231c2dd220336bbc7522c490d95742f6ba0adae
qdev: Set globals in instance_post_init function

This way, properties registered in the instance_init function of
child classes will be handled properly by qdev_prop_set_globals(), too.

Includes a unit test for the new functionality.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/core/qdev.c
tests/test-qdev-global-props.c