mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
qemu: process: Handle transient disks on VM startup
Add overlays after the VM starts before we start executing guest code. Signed-off-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> Signed-off-by: Peter Krempa <pkrempa@redhat.com> Tested-by: Masayoshi Mizuma <m.mizuma@jp.fujitsu.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Tested-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
e86b16ced7
commit
1c9227de5d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user