mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
qemu: prepare and stop the dbus daemon
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
f58c51b317
commit
db670b8d67
@ -58,6 +58,7 @@
|
||||
#include "qemu_extdevice.h"
|
||||
#include "qemu_firmware.h"
|
||||
#include "qemu_backup.h"
|
||||
#include "qemu_dbus.h"
|
||||
|
||||
#include "cpu/cpu.h"
|
||||
#include "cpu/cpu_x86.h"
|
||||
@ -6480,6 +6481,9 @@ qemuProcessPrepareHost(virQEMUDriverPtr driver,
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
|
||||
|
||||
if (qemuDBusPrepareHost(driver) < 0)
|
||||
return -1;
|
||||
|
||||
if (qemuPrepareNVRAM(cfg, vm) < 0)
|
||||
return -1;
|
||||
|
||||
@ -7425,6 +7429,8 @@ void qemuProcessStop(virQEMUDriverPtr driver,
|
||||
|
||||
qemuExtDevicesStop(driver, vm);
|
||||
|
||||
qemuDBusStop(driver, vm);
|
||||
|
||||
vm->def->id = -1;
|
||||
|
||||
/* Stop autodestroy in case guest is restarted */
|
||||
|
Loading…
Reference in New Issue
Block a user