On 02/12/20 11:38, Kevin Wolf wrote:
Am 02.12.2020 um 10:30 hat Paolo Bonzini geschrieben:
> On 01/12/20 23:08, Eduardo Habkost wrote:
>>> Properties are only a useful concept if they have a use. If
>>> -object/object_add/object-add can do the same job without properties,
>>> properties are not needed anymore.
>>
>> Do you mean "not needed for -object anymore"? Properties are
>> still used by internal C code (esp. board code),
>> -device/device_add, -machine, -cpu, and debugging commands (like
>> "info qtree" and qom-list/qom-get/qom-set).
>
> Yes.
Are internal uses mostly just right after object creation, or do we make
a lot of use of them during runtime?
Not "a lot" but enough to be nasty. There are a couple uses of
"well-known" QOM properties (e.g. to access the RTC time or the balloon
stats), plus "info qtree".
Paolo