Re: [PATCH 2/5] qom: use object_new_with_class when possible

2024-10-29 Thread Philippe Mathieu-Daudé
On 29/10/24 09:26, Paolo Bonzini wrote: A small optimization/code simplification, that also makes it clear that we won't look for a type in a not-loaded-yet module---the module will have been loaded by a call to module_object_class_by_name(), if present. Signed-off-by: Paolo Bonzini --- hw/co

[PATCH 2/5] qom: use object_new_with_class when possible

2024-10-29 Thread Paolo Bonzini
A small optimization/code simplification, that also makes it clear that we won't look for a type in a not-loaded-yet module---the module will have been loaded by a call to module_object_class_by_name(), if present. Signed-off-by: Paolo Bonzini --- hw/core/qdev.c | 5 +++-- qom/object_in