1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00

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 <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-05-13 20:38:12 +02:00 committed by Michal Privoznik
parent 88ba34f5a0
commit 5c1e203a80

View 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; return 0;
} }