qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH v3 01/21] qom: Register QOM infrastructure early
Date: Mon, 06 Feb 2012 13:14:43 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15

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_init() is left for legacy types. New ones should use type_init().

There are no legacy device_init users. Everything can (and should) be converted to type_init() and MODULE_INIT_QOM can be invoked very early.

Regards,

Anthony Liguori



reply via email to

[Prev in Thread] Current Thread [Next in Thread]