[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:41:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 |
Il 27/03/2012 18:28, Anthony Liguori ha scritto:
>
> 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.
>
> Likewise, unrealize() should do the same with reset().
Andreas, since this came up three times in three different threads
today, I sent my series to give all objects a canonical path. With that
series and yours together, you should be able to experiment with pushing
qdev_init out of functions such as rtc_init, and instead just set
realize=true for the root (or the /machine container added in that series).
Paolo
- [Qemu-devel] [PATCH RFC 3/3] qdev: Hook up DeviceClass::init to ObjectClass::realize, (continued)