From nobody Tue Mar 3 04:55:51 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=1771417593; cv=none; d=zohomail.com; s=zohoarc; b=fwV/xA2cKcUrVXwWZa3zkSqSwabGq+sdq/n2MiS+6pK6vAND4aTCw1TBfAsr5arlHHLf3l+w3xlvv7GEdKLd/3oOc4+jGpwGE9i+CNoX4AiXzZhUOofuNT7dCbR3eiTX9wnjZSY4SzvEyDK4pQlyEwsP6iIFg0fjLsQ0GEC3j8E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771417593; 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=ruZfbjI/C3Dsnex/dvVZhgjBJ/SdT5dkTTzFggNr8wM=; b=MnlcTW6EaaAQZ+DnHkRWiw6BVSoD1KuJOMvRJXsd6I3JWvgqspM0PzZZ0mnCwY5HIcArn0EdZE54QcEwN744pClsXVYQZMvegjIPcXXk8/b+kmovwwkXo80+TLiVyLKRw3jV/bI4TPZNhO625uwc6goeLXNkDHQiEdka+x8Ea94= 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 1771417593778109.13180361808793; Wed, 18 Feb 2026 04:26:33 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 1DBA641D1D; Wed, 18 Feb 2026 07:26:33 -0500 (EST) Received: from [172.19.199.9] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id D6C3143EDC; Wed, 18 Feb 2026 07:10:32 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 053FA41AF7; 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 CCB7E41BD1 for ; Wed, 18 Feb 2026 07:06:40 -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-445-84DN5-78OJqSkbjUfWB5rQ-1; Wed, 18 Feb 2026 07:06:39 -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 8C7BE1956050 for ; Wed, 18 Feb 2026 12:06:38 +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 7D21E30001A5 for ; Wed, 18 Feb 2026 12:06:37 +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=1771416400; 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=ruZfbjI/C3Dsnex/dvVZhgjBJ/SdT5dkTTzFggNr8wM=; b=J36Rc4Qy5ilub6vu7jqu7S/AaGt0T7SDmZT+2TPQhZYeA8DlAhArpm5OYHCHRvQN62dBK3 C7tIWXf3By6CfWUMCdMUphy/x7URDuA9f8yoFd80RdNLsugmeGYfvBH9uLlItkevbJTX8w lRgfPh+jZ50Qh6UsORdV37DbA9exs5w= X-MC-Unique: 84DN5-78OJqSkbjUfWB5rQ-1 X-Mimecast-MFC-AGG-ID: 84DN5-78OJqSkbjUfWB5rQ_1771416398 To: devel@lists.libvirt.org Subject: [PATCH v3 20/38] qemu_firmware: Report NVRAM template path for ROMs Date: Wed, 18 Feb 2026 13:05:43 +0100 Message-ID: <20260218120601.230343-21-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: Eci4jrD2MrZZH0QO1daxe5qpJ0oySu682TWBlDsqwNo_1771416398 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: B5BQX5LLOVWK7FQZLU7HKT575HXI4DUJ X-Message-ID-Hash: B5BQX5LLOVWK7FQZLU7HKT575HXI4DUJ 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: 1771417596546154100 Content-Type: text/plain; charset="utf-8"; x-default="true" This was not necessary until now since ROMs couldn't have an associate NVRAM template, and technically speaking they still can't; however, the varstore template serves essentialy the same purpose. The qemuFirmwareGetSupported() helper is used in two places: one is the code that is responsible for filling in domaincaps, where templates are ignored so this change has no impact on it; the other is the qemufirmware test program, where this value being reported is useful as it will allow us to confirm that the JSON firmware descriptors for uefi-vars enabled builds are parsed correctly. Signed-off-by: Andrea Bolognani Reviewed-by: Daniel P. Berrang=C3=A9 --- src/qemu/qemu_firmware.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qemu/qemu_firmware.c b/src/qemu/qemu_firmware.c index f64ea287b4..56f03bc907 100644 --- a/src/qemu/qemu_firmware.c +++ b/src/qemu/qemu_firmware.c @@ -2162,6 +2162,7 @@ qemuFirmwareGetSupported(const char *machine, =20 case QEMU_FIRMWARE_DEVICE_MEMORY: fwpath =3D memory->filename; + nvrampath =3D memory->template; break; =20 case QEMU_FIRMWARE_DEVICE_NONE: --=20 2.53.0