From 1c9227de5d7d78b7915257c9dcea29384060da88 Mon Sep 17 00:00:00 2001 From: Masayoshi Mizuma Date: Thu, 17 Sep 2020 09:30:45 -0400 Subject: [PATCH] qemu: process: Handle transient disks on VM startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add overlays after the VM starts before we start executing guest code. Signed-off-by: Masayoshi Mizuma Signed-off-by: Peter Krempa Tested-by: Masayoshi Mizuma Reviewed-by: Ján Tomko Tested-by: Ján Tomko --- 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: