From nobody Tue Feb 10 05:43:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1770648380; cv=none; d=zohomail.com; s=zohoarc; b=Rz9NpMx3XUoVV7Uu0VFcjdJiZY0e0OcteAGMwuuE1b9UML4pHt+7JRlOz4PjmLBLkz4RV0uZrn5czn+HqtszHC1nM40vtOhPeEuuyTb53zjz8DYf+jlL1FaqTHhxUFjPZNN1dXZ6mqdmGGSjuh0ZSPaDEIRE7fh5DlBP44JPYok= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770648380; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=LTziLkslqyQfhQJab83zRZyR0CY1whgbct2bXegUuCM=; b=AY/y4wb+0piReXDRIgoXkQN+dooA5kugBkBOyDnzy7vJbOQUb48rVaoSzH5Ar7itDRIdrRiSmqf+DSDdlG1r6nToGTYKWFYCyr6LTWtarE/5BnNRTjx8V/pk6rvaicKS7mfuAwFIYkd24FtEVwXJYlJLeL6AHsOYMAdXoRmnlWI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1770648380974179.37600671440907; Mon, 9 Feb 2026 06:46:20 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 508E143FD4; Mon, 9 Feb 2026 09:46:20 -0500 (EST) Received: from [172.19.199.6] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 4F6CA447F0; Mon, 9 Feb 2026 09:07:11 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id EEE1141B20; Mon, 9 Feb 2026 09:02:37 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 4672041B75 for ; Mon, 9 Feb 2026 08:48:01 -0500 (EST) Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-21-t71XwzLjN7ShS_gINc9Crw-1; Mon, 09 Feb 2026 08:47:59 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DAECC195608D for ; Mon, 9 Feb 2026 13:47:58 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.45.226.251]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 251FD1956053 for ; Mon, 9 Feb 2026 13:47:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770644881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LTziLkslqyQfhQJab83zRZyR0CY1whgbct2bXegUuCM=; b=VPHbgxz/UH8HIrXZQ1eR5yeABMsNDjWKOucykWIKeGjlYF/dL8QsT9Ep+tU//UNEiM4YJ/ q3Y9wRcA5jIU7+HqDAtIoeEF17x2FwdXZbgiDsboZ5ApUhuTYtvyvFVPURxLpijB/K03hy UDb3rGpYD9nGVnvVoKNIaWLlJNC5tlw= X-MC-Unique: t71XwzLjN7ShS_gINc9Crw-1 X-Mimecast-MFC-AGG-ID: t71XwzLjN7ShS_gINc9Crw_1770644879 To: devel@lists.libvirt.org Subject: [PATCH v2 35/38] include: Mention varstore where applicable Date: Mon, 9 Feb 2026 14:47:09 +0100 Message-ID: <20260209134712.296670-36-abologna@redhat.com> In-Reply-To: <20260209134712.296670-1-abologna@redhat.com> References: <20260209134712.296670-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: LU7sZzDdSCf0CdmbD71BSWVH7ifrQ0oS71WrgVXiBQs_1770644879 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: C6ABNAYALWLCZIAFZW4VSJ3OLSRTJCFB X-Message-ID-Hash: C6ABNAYALWLCZIAFZW4VSJ3OLSRTJCFB X-MailFrom: abologna@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Andrea Bolognani via Devel Reply-To: Andrea Bolognani X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1770648382354154100 Content-Type: text/plain; charset="utf-8"; x-default="true" We are not introducing additional API flags for varstore handling since that would require unnecessary churn in all libvirt-based apps, and the intent is the same: recreate the UEFI variable storage, be it NVRAM or varstore, from its template. In order to clarify that the existing flags affect varstore too, update their documentation. Signed-off-by: Andrea Bolognani --- include/libvirt/libvirt-domain-snapshot.h | 2 +- include/libvirt/libvirt-domain.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libvirt/libvirt-domain-snapshot.h b/include/libvirt/li= bvirt-domain-snapshot.h index a11cd3f823..e14b661e37 100644 --- a/include/libvirt/libvirt-domain-snapshot.h +++ b/include/libvirt/libvirt-domain-snapshot.h @@ -217,7 +217,7 @@ typedef enum { VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING =3D 1 << 0, /* Run after revert (Si= nce: 0.9.5) */ VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED =3D 1 << 1, /* Pause after revert (= Since: 0.9.5) */ VIR_DOMAIN_SNAPSHOT_REVERT_FORCE =3D 1 << 2, /* Allow risky reverts = (Since: 0.9.7) */ - VIR_DOMAIN_SNAPSHOT_REVERT_RESET_NVRAM =3D 1 << 3, /* Re-initialize NV= RAM from template (Since: 8.1.0) */ + VIR_DOMAIN_SNAPSHOT_REVERT_RESET_NVRAM =3D 1 << 3, /* Re-initialize NV= RAM/varstore from template (Since: 8.1.0) */ } virDomainSnapshotRevertFlags; =20 /* Revert the domain to a point-in-time snapshot. The diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-dom= ain.h index 893359aaae..9e2bd5e3f8 100644 --- a/include/libvirt/libvirt-domain.h +++ b/include/libvirt/libvirt-domain.h @@ -371,7 +371,7 @@ typedef enum { VIR_DOMAIN_START_BYPASS_CACHE =3D 1 << 2, /* Avoid file system cache p= ollution (Since: 0.9.4) */ VIR_DOMAIN_START_FORCE_BOOT =3D 1 << 3, /* Boot, discarding any mana= ged save (Since: 0.9.5) */ VIR_DOMAIN_START_VALIDATE =3D 1 << 4, /* Validate the XML document= against schema (Since: 1.2.12) */ - VIR_DOMAIN_START_RESET_NVRAM =3D 1 << 5, /* Re-initialize NVRAM from = template (Since: 8.1.0) */ + VIR_DOMAIN_START_RESET_NVRAM =3D 1 << 5, /* Re-initialize NVRAM/varst= ore from template (Since: 8.1.0) */ } virDomainCreateFlags; =20 =20 @@ -1652,7 +1652,7 @@ typedef enum { VIR_DOMAIN_SAVE_BYPASS_CACHE =3D 1 << 0, /* Avoid file system cache po= llution (Since: 0.9.4) */ VIR_DOMAIN_SAVE_RUNNING =3D 1 << 1, /* Favor running over paused = (Since: 0.9.5) */ VIR_DOMAIN_SAVE_PAUSED =3D 1 << 2, /* Favor paused over running = (Since: 0.9.5) */ - VIR_DOMAIN_SAVE_RESET_NVRAM =3D 1 << 3, /* Re-initialize NVRAM from t= emplate (Since: 8.1.0) */ + VIR_DOMAIN_SAVE_RESET_NVRAM =3D 1 << 3, /* Re-initialize NVRAM/varsto= re from template (Since: 8.1.0) */ } virDomainSaveRestoreFlags; =20 int virDomainSave (virDomainPtr domain, --=20 2.53.0