From nobody Sun Feb 8 20:53:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1600947954; cv=none; d=zohomail.com; s=zohoarc; b=UpgFDyCGraWjYo4OB02ziwKmUNeKTaHE3ZBvGpiZ/PfovMiggll8xGIT2+wGipPRpLXbfm2REbb1Ay8wlDrvVwgKUukPnc8khHaVk/IY7SBFih0qqfI48OUMX8C3GR3Vxf9TBa0FWx2fshWy1rJSJw5F7hJv9tmQhZrokqHtE6o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600947954; 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=eKor3Q2yY1ggdDRBUh+ypv8mtCiXLi1IY+vA2CA9q4c=; b=lT3cvQNFSarPKzNG94D+2S6BJyqx9ckuq5vb/mblkAtT0ixg1Uo0fu3GIWjmtUcWz8dDcvQbVjjsMO34TfizDgwp9Vy5OZabS0Fhj67HNSnYkcmLT+hEZUdLqONpdjh4KM2X6wFTJ5hqgHHRnusvN5IGOS2Q/el2iiJD0KjDJRc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1600947954054716.3299208376881; Thu, 24 Sep 2020 04:45:54 -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-51-hpwWU4sePG2-xIq_kVBIHw-1; Thu, 24 Sep 2020 07:45:49 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6F0818010C7; Thu, 24 Sep 2020 11:45:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C19D5C1C7; Thu, 24 Sep 2020 11:45:44 +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 190BE8C7A9; Thu, 24 Sep 2020 11:45:44 +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 08OBiCN4009090 for ; Thu, 24 Sep 2020 07:44:12 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3238A6115F; Thu, 24 Sep 2020 11:44:12 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.40.208.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3B9F160C04; Thu, 24 Sep 2020 11:44:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600947952; 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=eKor3Q2yY1ggdDRBUh+ypv8mtCiXLi1IY+vA2CA9q4c=; b=HZPzv2f2VwzIbpP1bCw5MfnErc7TyBMpAQZv2pbJPXb2IbRtUatElBbd+skUkbN12WtR7g sO7fEnqsWLrmgkNQzi1CVBnOMtj0rnQM4HmWLsry7dsc3vjGiFJ59OaOFmZkoy0SRxtuik 0sNbeESohEtHAW8r+JkxIN4bd44feRQ= X-MC-Unique: hpwWU4sePG2-xIq_kVBIHw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v4 06/11] qemu: Block migration when transient disk option is enabled Date: Thu, 24 Sep 2020 13:43:53 +0200 Message-Id: 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.16 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 Block migration when transient disk option is enabled to simplify the handling of the overlay files. Signed-off-by: Masayoshi Mizuma --- src/qemu/qemu_migration.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 5708334d2f..2f24d56312 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -1394,6 +1394,16 @@ qemuMigrationSrcIsAllowed(virQEMUDriverPtr driver, _("cannot migrate this domain without dbus-vmst= ate support")); return false; } + + for (i =3D 0; i < vm->def->ndisks; i++) { + virDomainDiskDefPtr disk =3D vm->def->disks[i]; + + if (disk->transient) { + virReportError(VIR_ERR_OPERATION_INVALID, "%s", + _("migration with transient disk is not support= ed")); + return false; + } + } } return true; --=20 2.26.2