mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
object_initialize: try module load
Needed to allow virtio-gpu-pci initialize the virtio-gpu-device child device. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200914134224.29769-5-kraxel@redhat.com
This commit is contained in:
parent
f84698ee8b
commit
64f7aece8e
1 changed files with 6 additions and 0 deletions
|
@ -518,6 +518,12 @@ void object_initialize(void *data, size_t size, const char *typename)
|
|||
{
|
||||
TypeImpl *type = type_get_by_name(typename);
|
||||
|
||||
#ifdef CONFIG_MODULES
|
||||
if (!type) {
|
||||
module_load_qom_one(typename);
|
||||
type = type_get_by_name(typename);
|
||||
}
|
||||
#endif
|
||||
if (!type) {
|
||||
error_report("missing object type '%s'", typename);
|
||||
abort();
|
||||
|
|
Loading…
Reference in a new issue