On 23/02/2024 13.43, Paolo Bonzini wrote:
object_resolve_type_unambiguous provides a useful functionality, that
is currently emulated for example by usb_bus_find(). Move it to core
code and add error reporting for increased generality.
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
---
include/qom/object.h | 13 +++++++++++++
hw/i386/acpi-build.c | 19 ++++---------------
qom/object.c | 16 ++++++++++++++++
3 files changed, 33 insertions(+), 15 deletions(-)
Reviewed-by: Thomas Huth <th...@redhat.com>