]> git.ipfire.org Git - thirdparty/qemu.git/commit
qom: let object_new use a module if the type is not present
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Oct 2024 09:41:58 +0000 (10:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Oct 2024 17:28:32 +0000 (18:28 +0100)
commit02009a12bcd7927a968df7641eaa609b659b3470
treeb8075f8edf7124686c666393af194a54020aa845
parent144d80f69e9ee614bf7fb06ad586cef610cec0f7
qom: let object_new use a module if the type is not present

object_initialize() can use modules (it was added there because
virtio-gpu-device is a child device of virtio-gpu-pci; commit
64f7aece8ea, "object_initialize: try module load", 2020-09-15).
object_new() cannot; make things consistent.

qdev_new() is now just a simple wrapper that returns DeviceState.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev.c
qom/object.c