Re: [Qemu-devel] [PATCH v3 01/21] qom: Register QOM infrastructure early

2012-02-06 Thread Anthony Liguori
On 02/02/2012 08:59 PM, Andreas Färber wrote: QOM TYPE_INTERFACE was registered with device_init(), whose constructors are executed rather late in vl.c's main(). Rename the module init type from DEVICE to QOM and call it very early so that QOM can safely be used for machines and CPUs. device_in

[Qemu-devel] [PATCH v3 01/21] qom: Register QOM infrastructure early

2012-02-02 Thread Andreas Färber
QOM TYPE_INTERFACE was registered with device_init(), whose constructors are executed rather late in vl.c's main(). Rename the module init type from DEVICE to QOM and call it very early so that QOM can safely be used for machines and CPUs. device_init() is left for legacy types. New ones should u