On 27 March 2012 17:28, Anthony Liguori <anth...@codemonkey.ws> wrote:
> On 03/27/2012 11:19 AM, Paolo Bonzini wrote:
>> I think a major difference between realize and init should be that the
>> realize property also propagates down the whole composition tree (in
>> pre-order for setting to true, and post-order for setting to false).
>
>
> Yes, I haven't reviewed this series yet, but my expectation would be that
> realize propagates and that the default implementation of
> DeviceClass::realize() would explicitly *not* propagate and instead just
> call ::init.

So who calls realize for non-qdev QOM objects which are children of
qdev QOM objects?

I really don't like having the object lifecycle methods be different
for DeviceClass than for base objects if we can avoid it.

-- PMM

Reply via email to