提交 db670b8d 编写于 作者: M Marc-André Lureau 提交者: Michal Privoznik

qemu: prepare and stop the dbus daemon

Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 f58c51b3
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
#include "qemu_extdevice.h" #include "qemu_extdevice.h"
#include "qemu_firmware.h" #include "qemu_firmware.h"
#include "qemu_backup.h" #include "qemu_backup.h"
#include "qemu_dbus.h"
#include "cpu/cpu.h" #include "cpu/cpu.h"
#include "cpu/cpu_x86.h" #include "cpu/cpu_x86.h"
...@@ -6480,6 +6481,9 @@ qemuProcessPrepareHost(virQEMUDriverPtr driver, ...@@ -6480,6 +6481,9 @@ qemuProcessPrepareHost(virQEMUDriverPtr driver,
qemuDomainObjPrivatePtr priv = vm->privateData; qemuDomainObjPrivatePtr priv = vm->privateData;
g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver); g_autoptr(virQEMUDriverConfig) cfg = virQEMUDriverGetConfig(driver);
if (qemuDBusPrepareHost(driver) < 0)
return -1;
if (qemuPrepareNVRAM(cfg, vm) < 0) if (qemuPrepareNVRAM(cfg, vm) < 0)
return -1; return -1;
...@@ -7425,6 +7429,8 @@ void qemuProcessStop(virQEMUDriverPtr driver, ...@@ -7425,6 +7429,8 @@ void qemuProcessStop(virQEMUDriverPtr driver,
qemuExtDevicesStop(driver, vm); qemuExtDevicesStop(driver, vm);
qemuDBusStop(driver, vm);
vm->def->id = -1; vm->def->id = -1;
/* Stop autodestroy in case guest is restarted */ /* Stop autodestroy in case guest is restarted */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册