qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] object_initialize: try module load
@ 2020-09-07  9:47 Gerd Hoffmann
  2020-09-07  9:47 ` [PATCH 2/3] virtio-gpu: make virtio_gpu_ops static Gerd Hoffmann
  2020-09-07  9:47 ` [PATCH 3/3] virtio-gpu: build modular Gerd Hoffmann
  0 siblings, 2 replies; 4+ messages in thread
From: Gerd Hoffmann @ 2020-09-07  9:47 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Daniel P. Berrangé, Gerd Hoffmann,
	Eduardo Habkost

Needed to allow virtio-gpu-pci initialize the
virtio-gpu-device child device.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 qom/object.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/qom/object.c b/qom/object.c
index 00fdf89b3b0a..f85740001520 100644
--- 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();
-- 
2.27.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-08 12:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-07  9:47 [PATCH 1/3] object_initialize: try module load Gerd Hoffmann
2020-09-07  9:47 ` [PATCH 2/3] virtio-gpu: make virtio_gpu_ops static Gerd Hoffmann
2020-09-08 12:06   ` Michael S. Tsirkin
2020-09-07  9:47 ` [PATCH 3/3] virtio-gpu: build modular Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).