From nobody Mon Feb 9 09:28:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1600947999; cv=none; d=zohomail.com; s=zohoarc; b=KnWwS8ZpYH56SLWqYJCB/EoS5gRBPe/3R4bRuEEPi2v/7htdBpboqkAoVW2PY/c5IvMphai/Vi2S2U9FAL5mNlb5HadwWgWD5DYSUNNT/14hsFAysbX3cajt/wBA8r8bi078l8UV0GQoFee8zsJp6Q+z/GwjSSV3LI4QKmMO1Zk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600947999; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XYqBclDFBCxn6OAZSi0xDxKNWitWntT0BOfTNOK3AaU=; b=fsfwsYbpNYPtvcrnGodZiR6dCFj51EXQpK3knybprzdfqvLZcp9bcNO9aZs3anctPnHXZh7WW7agtf+/UV1Dqb/rsiQpvAffX6Fcz7u0MtZ6brOQV++hrjHXoslLAb5MoIwFFA14R1ETwAFEorXoE90Luz+5uYRXyM2ZNUmpZhw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1600947999372486.4972686545067; Thu, 24 Sep 2020 04:46:39 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-417-yQmK8eISPJGUTIyVbUafRQ-1; Thu, 24 Sep 2020 07:45:55 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 94EE1188C12B; Thu, 24 Sep 2020 11:45:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7480F73682; Thu, 24 Sep 2020 11:45:49 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 433321826D34; Thu, 24 Sep 2020 11:45:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08OBiF7C009107 for ; Thu, 24 Sep 2020 07:44:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id F3B0860C04; Thu, 24 Sep 2020 11:44:14 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0AD9A61177; Thu, 24 Sep 2020 11:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600947998; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=XYqBclDFBCxn6OAZSi0xDxKNWitWntT0BOfTNOK3AaU=; b=gXv0IVgrx1n5PPe77IEv7o0oo4+y7DJ+EXHMD3i5CISBqO/axd5ueUr8x7LaGxbl06ulLS we6tuq/4FnrYugAKNwzovmTyuOmgh2SlAurYgWFGb49kFdSozS1Nq8DTseUsXSSksDWyO3 17ojaaDmOHIQ7f+Tb8eZUbZgxyxMGvo= X-MC-Unique: yQmK8eISPJGUTIyVbUafRQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v4 08/11] qemu: process: Handle transient disks on VM startup Date: Thu, 24 Sep 2020 13:43:55 +0200 Message-Id: <23ad1755738d87da74721ffc6c2109ea90517d21.1600947699.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: libvir-list@redhat.com Cc: Masayoshi Mizuma X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" From: Masayoshi Mizuma 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 --- 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 =3D 0; cleanup: --=20 2.26.2