Re: [PATCH 0/5] qom: module loading cleanups

2024-10-29 Thread Richard Henderson
On 10/29/24 12:26, Paolo Bonzini wrote: Paolo Bonzini (5): qom: remove unused function qom: use object_new_with_class when possible qom: centralize module-loading functionality qom: let object_new use a module if the type is not present qom: allow user-creatable classes to be in mo

[PATCH 0/5] qom: module loading cleanups

2024-10-29 Thread Paolo Bonzini
While looking at possible Rust APIs for object_new/qdev_new (one of the functions that rust/hw/char/pl011 uses via FFI) I noticed that the support for modules in QOM APIs is quite random. In particular, loading modules is done by object_initialize() and qdev_new(), but not by object_new(); further