From nobody Sun Feb 8 22:06:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1578077043; cv=none; d=zohomail.com; s=zohoarc; b=X+ZDke4jTFP9iJBPkVFdzpeSggCFx6wRlkpz7ASRQXehZd+Lv5suCh0iIGeZhnL5g4wZ+nLPtJcWBkLoKWw63uC36p2WKIef5BpUoNIAnFCcKfMGaNY97x7qEcYEuoDQPuzSD7KvXNxY32QvMs2rHP18QdGp8QL0K6fw02aOVWE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578077043; 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=DjoOa1EZLr79xia3M4odo2xQnRJdLWH1onlmzp301Oc=; b=EKNTzICgwfJLCfUMxBzUQEzneyF4tp9A2klq5wPk01Uz5J6Mfc7r2+W/PVSq5w2kH8mwUkgXImhnyfpz9w8O/wMnujx9tSVHIzCTGF9lpmmWHE/WhT1fZLd8Rg8nkyDLZD1f5olKcd21qCy0acT+RxxTHlmQZfvZqMMGmY5lybI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1578077043972402.24620167475325; Fri, 3 Jan 2020 10:44:03 -0800 (PST) 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-41-w_5dRq1WO0OK1XfUk6BWTw-1; Fri, 03 Jan 2020 13:44:01 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7F0BB107ACCA; Fri, 3 Jan 2020 18:43:55 +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 57D107BA3D; Fri, 3 Jan 2020 18:43:55 +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 1116281E3A; Fri, 3 Jan 2020 18:43:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 003IhnIA021084 for ; Fri, 3 Jan 2020 13:43:50 -0500 Received: by smtp.corp.redhat.com (Postfix) id D01732166B2A; Fri, 3 Jan 2020 18:43:49 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CBA952166B29 for ; Fri, 3 Jan 2020 18:43:47 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E36E9802884 for ; Fri, 3 Jan 2020 18:43:46 +0000 (UTC) Received: from heinz.dinsnail.net (heinz.dinsnail.net [81.169.187.250]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-102-V76VaATSOE2WPPfdceNtzA-1; Fri, 03 Jan 2020 13:43:42 -0500 Received: from heinz.dinsnail.net ([IPv6:0:0:0:0:0:0:0:1]) by heinz.dinsnail.net (8.15.2/8.15.2) with ESMTP id 003IhTPd015814; Fri, 3 Jan 2020 19:43:29 +0100 Received: (from michael@localhost) by heinz.dinsnail.net (8.15.2/8.15.2/Submit) id 003IhTh0015813; Fri, 3 Jan 2020 19:43:29 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578077042; 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=DjoOa1EZLr79xia3M4odo2xQnRJdLWH1onlmzp301Oc=; b=dQvMOdSelcRr1YV9d8+7uiYRqCLiiipAa1qP40cgBM35Osr8ymNqOvGCT8R6vwOZOYn3OR GDRkabpnGx8JQkMKeYu0IfiZsR/idu5oajq1mXlRq5BScXSmW0oucWbmHQ6YriZvQd2cNG pj/TDf5Fo2iTapswtA7CxG7xHHaoKw4= From: Michael Weiser To: libvir-list@redhat.com Date: Fri, 3 Jan 2020 19:43:25 +0100 Message-Id: <20200103184325.5593-4-michael.weiser@gmx.de> In-Reply-To: <20200103184325.5593-1-michael.weiser@gmx.de> References: <20200103184325.5593-1-michael.weiser@gmx.de> MIME-Version: 1.0 X-dinsnail-net-MailScanner-Information: Please contact the ISP for more information X-dinsnail-net-MailScanner-ID: 003IhTPd015814 X-dinsnail-net-MailScanner: Found to be clean X-dinsnail-net-MailScanner-From: michael@heinz.dinsnail.net X-Spam-Status: No X-MC-Unique: V76VaATSOE2WPPfdceNtzA-1 X-MC-Unique: w_5dRq1WO0OK1XfUk6BWTw-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 003IhnIA021084 X-loop: libvir-list@redhat.com Cc: Daniel Henrique Barboza , Michael Weiser , Cole Robinson Subject: [libvirt] [PATCH v3 3/3] docs: Add snapshot-revert qemu managedsave force 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.15 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Add documentation for additional reason why snapshot-revert might need to be forced. This explains why restoring an inactive snapshot while there is managed saved state is refused by default. Signed-off-by: Michael Weiser Reviewed-by: Daniel Henrique Barboza --- docs/manpages/virsh.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst index f5f962cba1..cba590935b 100644 --- a/docs/manpages/virsh.rst +++ b/docs/manpages/virsh.rst @@ -6951,7 +6951,7 @@ no vm state leaves the domain in an inactive state. = Passing either the transient domains cannot be inactive, it is required to use one of these flags when reverting to a disk snapshot of a transient domain. =20 -There are two cases where a snapshot revert involves extra risk, which +There are a number of cases where a snapshot revert involves extra risk, w= hich requires the use of *--force* to proceed: =20 * One is the case of a snapshot that lacks full domain information for @@ -6961,7 +6961,7 @@ requires the use of *--force* to proceed: libvirt that the snapshot is compatible with the current configuration (and if it is not, the domain will likely fail to run). =20 - * The other is the case of reverting from a running domain to an active + * Another is the case of reverting from a running domain to an active state where a new hypervisor has to be created rather than reusing the existing hypervisor, because it implies drawbacks such as breaking any existing VNC or Spice connections; this condition happens with an acti= ve @@ -6969,6 +6969,13 @@ requires the use of *--force* to proceed: an inactive snapshot that is combined with the *--start* or *--pause* flag. =20 + * Also, libvirt will refuse to restore snapshots of inactive QEMU domains + while there is managed saved state. This is because those snapshots do= not + contain memory state and will therefore not replace the existing memory + state. This ends up switching a disk underneath a running system and w= ill + likely cause extensive filesystem corruption or crashes due to swap co= ntent + mismatches when run. + =20 snapshot-delete --------------- --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list