From: Masayoshi Mizuma <m.miz...@jp.fujitsu.com>

Add overlays after the VM starts before we start executing guest code.

Signed-off-by: Masayoshi Mizuma <m.miz...@jp.fujitsu.com>
Signed-off-by: Peter Krempa <pkre...@redhat.com>
---
 src/qemu/qemu_process.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index ffb3afa9c5..9122069cc9 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -60,6 +60,7 @@
 #include "qemu_firmware.h"
 #include "qemu_backup.h"
 #include "qemu_dbus.h"
+#include "qemu_snapshot.h"

 #include "cpu/cpu.h"
 #include "cpu/cpu_x86.h"
@@ -7077,6 +7078,10 @@ qemuProcessLaunch(virConnectPtr conn,
         qemuProcessAutoDestroyAdd(driver, vm, conn) < 0)
         goto cleanup;

+    VIR_DEBUG("Setting up transient disk");
+    if (qemuSnapshotCreateDisksTransient(vm, asyncJob) < 0)
+        goto cleanup;
+
     ret = 0;

  cleanup:
-- 
2.26.2

Reply via email to