> I think we should move the whole /machine/unattached dance into
> qdev_realize, and just assert that a device being realized already has a
> parent. Then the ref/unref _will_ be unnecessary. In the meanwhile, I
> agree to either keep it or move it inside device_set_realized.
Could be done on top. I might try for v2, if I can find the time.