[libvirt PATCH v2 04/15] qemu: start the D-Bus daemon for the display

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

Start the daemon if necessary (it is already stopped in qemuProcessStop)

Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
---
 src/qemu/qemu_extdevice.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c
index 537b13039488..8ada8324bed1 100644
--- a/src/qemu/qemu_extdevice.c
+++ b/src/qemu/qemu_extdevice.c
@@ -201,6 +201,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;
 }
 
-- 
2.34.1.8.g35151cf07204




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux