mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +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:
parent
88ba34f5a0
commit
5c1e203a80
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user