From nobody Tue Mar 3 05:10:35 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=1771417795; cv=none; d=zohomail.com; s=zohoarc; b=cXZHmAMy+RJUEQXJvYAQMN+O4toElnkRKqoZXkohcIMEridibTlMEditIFDriSYfF6cUH9SSc0zutms3tbjwaxuKxWvzFTbJsGov1TQ65TbnFXKH6My3cW4ZtSuyuIfsK2jKigJ5TfyVNfDpAP170bIoWPa17e3UeR8pUHTt6oE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771417795; 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=DShxVzsBOcvMoZ+0mwr5rQ2UZ9fy5rnyNsTneDauTq8=; b=MI4Al8zrW7tKjx0JOT0hxxX7jVyHU7TdKfqfVJCMCBdHz1GUfyKjhKxXlcHM+QrlKkQDSo0h5DLIDHZ2u3vMaKUP+SfbRtQ6fZ2LLmmflZZNReHF7Vo2PzzrZ/SMTfEKXxeACQ5f9NMxZt0BydLm5D6YiARHBRpT5nhZu+yGnvU= 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 1771417795574296.28124034048005; Wed, 18 Feb 2026 04:29:55 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id C438E41CDB; Wed, 18 Feb 2026 07:29:55 -0500 (EST) Received: from [172.19.199.9] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id C34B64403F; Wed, 18 Feb 2026 07:10:44 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id BE44641B77; Wed, 18 Feb 2026 07:10:29 -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 E15F641B7F for ; Wed, 18 Feb 2026 07:06:43 -0500 (EST) Received: from mx-prod-mc-03.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-439-UoiQ7aWXPWO_Xm7rteH-kg-1; Wed, 18 Feb 2026 07:06:42 -0500 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 82FFE1956048 for ; Wed, 18 Feb 2026 12:06:41 +0000 (UTC) Received: from kinshicho.usersys.redhat.com (unknown [10.45.226.171]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8FA4330001BB for ; Wed, 18 Feb 2026 12:06:40 +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=-4.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HELO_MISC_IP,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=1771416403; 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=DShxVzsBOcvMoZ+0mwr5rQ2UZ9fy5rnyNsTneDauTq8=; b=MyGx8UguqjF14xZ3JUawQMIsUizKWTTnW0JkpJMH8cWO+yx/1UurKdFXYIMWey0059b6Ph r8BOzGvJ8wWehwrsKVCajqD+dFP4FMHtExmsPVWWHppwi6Ay9/eRA4iU7c7uVMpMYn56i3 D3N0g5+d8lKPM5gV3WYG94c98OgDDsk= X-MC-Unique: UoiQ7aWXPWO_Xm7rteH-kg-1 X-Mimecast-MFC-AGG-ID: UoiQ7aWXPWO_Xm7rteH-kg_1771416401 To: devel@lists.libvirt.org Subject: [PATCH v3 22/38] conf: Include varstore element in domcaps Date: Wed, 18 Feb 2026 13:05:45 +0100 Message-ID: <20260218120601.230343-23-abologna@redhat.com> In-Reply-To: <20260218120601.230343-1-abologna@redhat.com> References: <20260218120601.230343-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: b5q2qB3G3Imq4XT9xhx5zqQ_nsFmM34TjZvuO8HCwbQ_1771416401 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: G2TB6GSCT7FUPRJK6232YYHEMPAWMNLQ X-Message-ID-Hash: G2TB6GSCT7FUPRJK6232YYHEMPAWMNLQ 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: 1771417797435158500 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrang=C3=A9 --- src/conf/domain_capabilities.c | 10 ++++++++++ src/conf/domain_capabilities.h | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c index 9b3577cd08..78b8e6e6e1 100644 --- a/src/conf/domain_capabilities.c +++ b/src/conf/domain_capabilities.c @@ -449,12 +449,21 @@ virDomainCapsLoaderFormat(virBuffer *buf, FORMAT_EPILOGUE(loader); } =20 +static void +virDomainCapsVarstoreFormat(virBuffer *buf, + const virDomainCapsVarstore *varstore) +{ + FORMAT_PROLOGUE(varstore); + FORMAT_EPILOGUE(varstore); +} + static void virDomainCapsOSFormat(virBuffer *buf, const virDomainCapsOS *os) { const virDomainCapsFirmwareFeatures *firmwareFeatures =3D &os->firmwar= eFeatures; const virDomainCapsLoader *loader =3D &os->loader; + const virDomainCapsVarstore *varstore =3D &os->varstore; =20 FORMAT_PROLOGUE(os); =20 @@ -462,6 +471,7 @@ virDomainCapsOSFormat(virBuffer *buf, =20 virDomainCapsFirmwareFeaturesFormat(&childBuf, firmwareFeatures); virDomainCapsLoaderFormat(&childBuf, loader); + virDomainCapsVarstoreFormat(&childBuf, varstore); =20 FORMAT_EPILOGUE(os); } diff --git a/src/conf/domain_capabilities.h b/src/conf/domain_capabilities.h index a68fafe235..02344fd9b6 100644 --- a/src/conf/domain_capabilities.h +++ b/src/conf/domain_capabilities.h @@ -61,6 +61,11 @@ struct _virDomainCapsLoader { virDomainCapsEnum secure; /* Info about secure:virTristateBool */ }; =20 +typedef struct _virDomainCapsVarstore virDomainCapsVarstore; +struct _virDomainCapsVarstore { + virTristateBool supported; +}; + STATIC_ASSERT_ENUM(VIR_DOMAIN_OS_DEF_FIRMWARE_LAST); typedef struct _virDomainCapsOS virDomainCapsOS; struct _virDomainCapsOS { @@ -68,6 +73,7 @@ struct _virDomainCapsOS { virDomainCapsEnum firmware; /* Info about virDomainOsDefFirmware */ virDomainCapsFirmwareFeatures firmwareFeatures; virDomainCapsLoader loader; /* Info about virDomainLoaderDef */ + virDomainCapsVarstore varstore; }; =20 STATIC_ASSERT_ENUM(VIR_DOMAIN_MEMORY_SOURCE_LAST); --=20 2.53.0