There is a problem with it: 'make check fails' on test-qdev-global-props.
- 'qdev_get_machine()' is called by 'device_set_realized()' because
static_prop_type
has TYPE_DEVICE as parent.
- The machine is added to the QOM tree *only in vl's main* and this test does
not
reach it, but assumes that always will be a machine in the QOM tree.
This is no longer true.
Possible solution would be making existing 'null machine' a subclass of
MachineClass
and add it manually to QOM on this test(and other places as necessary). The
risk here is
that there are other places where the machine needs to be added manually to the
QOM tree.
(I am trying this option, but make check gets stuck !!!, debugging)