From: Marc-André Lureau Date: Fri, 13 May 2022 18:38:12 +0000 (+0200) Subject: qemu: start the D-Bus daemon for the display X-Git-Tag: v8.4.0-rc1~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c1e203a80f2b9811e66f5738297eb225cc5337b;p=thirdparty%2Flibvirt.git qemu: start the D-Bus daemon for the display Start the daemon if necessary (it is already stopped in qemuProcessStop) Signed-off-by: Marc-André Lureau Reviewed-by: Michal Privoznik --- diff --git a/src/qemu/qemu_extdevice.c b/src/qemu/qemu_extdevice.c index 9ef2a984f5..ec917a894e 100644 --- a/src/qemu/qemu_extdevice.c +++ b/src/qemu/qemu_extdevice.c @@ -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; }