projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f84698e
)
object_initialize: try module load
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 14 Sep 2020 13:42:22 +0000
(15:42 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 15 Sep 2020 12:11:49 +0000
(14:11 +0200)
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
qom/object.c
patch
|
blob
|
history
diff --git
a/qom/object.c
b/qom/object.c
index b1822a2ef4be297080471751b0002cd49c98e775..387efb25ebe967a6a2088842c0453f68a8b0808a 100644
(file)
--- a/
qom/object.c
+++ b/
qom/object.c
@@
-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();