[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH RFC 0/3] qom: Generalize qdev init to "realize"
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH RFC 0/3] qom: Generalize qdev init to "realize" |
Date: |
Tue, 27 Mar 2012 18:19:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
Il 26/03/2012 15:46, Andreas Färber ha scritto:
> Hello Anthony,
>
> Here's a mini series introducing ObjectClass::realize(Object *) and
> forwarding it to existing DeviceClass::init(DeviceState *).
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).
An important, related point is whether the composition tree should be
created before or after realize/init. Right now the few examples in the
tree do it after, but this sounds wrong to me and would block the above
auto-propagation.
Paolo