]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: start the D-Bus daemon for the display
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 13 May 2022 18:38:12 +0000 (20:38 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 19 May 2022 10:36:17 +0000 (12:36 +0200)
Start the daemon if necessary (it is already stopped in qemuProcessStop)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_extdevice.c

index 9ef2a984f545ee2556e612827414d5e48f81d643..ec917a894e83a04977f23c2d4d792c0ed34b27ad 100644 (file)
@@ -190,6 +190,19 @@ qemuExtDevicesStart(virQEMUDriver *driver,
         }
     }
 
+    for (i = 0; i < def->ngraphics; i++) {
+        virDomainGraphicsDef *graphics = def->graphics[i];
+
+        if (graphics->type != VIR_DOMAIN_GRAPHICS_TYPE_DBUS)
+            continue;
+
+        if (graphics->data.dbus.p2p || graphics->data.dbus.fromConfig)
+            continue;
+
+        if (qemuDBusStart(driver, vm) < 0)
+            return -1;
+    }
+
     return 0;
 }