{"id":2197225,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2197225/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260217131553.313772-2-abologna@redhat.com>","date":"2026-02-17T13:15:53","name":"[v3,1/1] docs/interop/firmware: Add 'uefi-vars' member for FirmwareMappingMemory","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"4cc61b3945c7681980134cfec38469dc680ee70a","submitter":{"id":66817,"url":"http://patchwork.ozlabs.org/api/1.0/people/66817/?format=json","name":"Andrea Bolognani","email":"abologna@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260217131553.313772-2-abologna@redhat.com/mbox/","series":[{"id":492426,"url":"http://patchwork.ozlabs.org/api/1.0/series/492426/?format=json","date":"2026-02-17T13:15:52","name":"docs/interop/firmware: Add 'uefi-vars' member for FirmwareMappingMemory","version":3,"mbox":"http://patchwork.ozlabs.org/series/492426/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2197225/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=jJSDljr0;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fFgCS1L5nz1xwD\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 18 Feb 2026 00:16:52 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vsKw5-0006U1-Ud; Tue, 17 Feb 2026 08:16:18 -0500","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <abologna@redhat.com>)\n id 1vsKvz-0006SR-Rb\n for qemu-devel@nongnu.org; Tue, 17 Feb 2026 08:16:12 -0500","from us-smtp-delivery-124.mimecast.com ([170.10.129.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <abologna@redhat.com>)\n id 1vsKvy-0005F4-Aj\n for qemu-devel@nongnu.org; Tue, 17 Feb 2026 08:16:11 -0500","from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-75-CiYnRRp5Nr-Qflk7OhB2Ug-1; Tue,\n 17 Feb 2026 08:16:04 -0500","from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id DE1551956050; Tue, 17 Feb 2026 13:16:02 +0000 (UTC)","from harajuku.usersys.redhat.com (unknown [10.44.33.118])\n by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 78B0630001A5; Tue, 17 Feb 2026 13:15:59 +0000 (UTC)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1771334168;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=EcR/wmz61knddkhHpK43twBnk2G4V4N9RjpoKjlZ6EQ=;\n b=jJSDljr02jwfFgVxeCeIriJCl5JGIVc8zEEcSwsHIhHcLu5NbiN7gvvIPVtHV7iGocJl1Z\n D9ORnlu+Hhz0nTox79svUKc5AG5vds4zMJsN2l8RJVPDYXumPnpHtDndHsalQgTktHKrfT\n 2xSwxkpI9aPllH4XDRyDnMGHffauJQI=","X-MC-Unique":"CiYnRRp5Nr-Qflk7OhB2Ug-1","X-Mimecast-MFC-AGG-ID":"CiYnRRp5Nr-Qflk7OhB2Ug_1771334164","From":"Andrea Bolognani <abologna@redhat.com>","To":"qemu-devel@nongnu.org","Cc":"Gerd Hoffmann <kraxel@redhat.com>, Markus Armbruster <armbru@redhat.com>,\n Kashyap Chamarthy <kchamart@redhat.com>, =?utf-8?q?Daniel_P=2E_Berrang?=\n\t=?utf-8?q?=C3=A9?= <berrange@redhat.com>,\n Pierrick Bouvier <pierrick.bouvier@linaro.org>, =?utf-8?q?Philippe_Mathieu-?=\n\t=?utf-8?q?Daud=C3=A9?= <philmd@linaro.org>","Subject":"[PATCH v3 1/1] docs/interop/firmware: Add 'uefi-vars' member for\n FirmwareMappingMemory","Date":"Tue, 17 Feb 2026 14:15:53 +0100","Message-ID":"<20260217131553.313772-2-abologna@redhat.com>","In-Reply-To":"<20260217131553.313772-1-abologna@redhat.com>","References":"<20260217131553.313772-1-abologna@redhat.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.4","Received-SPF":"pass client-ip=170.10.129.124;\n envelope-from=abologna@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.043,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,\n SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"This allows describing firmwares that are loaded as ROMs but also\nsupport a UEFI variable store. This is the case for edk2 builds\nthat are set up to use the uefi-vars QEMU device, and whose\ndescriptors would advertise the 'host-uefi-vars' feature.\n\nSigned-off-by: Andrea Bolognani <abologna@redhat.com>\nReviewed-by: Daniel P. Berrangé <berrange@redhat.com>\nAcked-by: Markus Armbruster <armbru@redhat.com>\n---\n docs/interop/firmware.json | 43 +++++++++++++++++++++++++++++++++++++-\n 1 file changed, 42 insertions(+), 1 deletion(-)","diff":"diff --git a/docs/interop/firmware.json b/docs/interop/firmware.json\nindex da0362a2c0..3c71914a52 100644\n--- a/docs/interop/firmware.json\n+++ b/docs/interop/firmware.json\n@@ -369,6 +369,39 @@\n { 'struct' : 'FirmwareMappingKernel',\n   'data'   : { 'filename' : 'str' } }\n \n+##\n+# @FirmwareMemoryUefiVars:\n+#\n+# Contains information needed to set up the \"uefi-vars\" device\n+# to provide UEFI variable store access to the firmware.\n+#\n+# @template: The path to the UEFI JSON variable store template\n+#     compatible with the firmware.  Management software instantiates\n+#     an individual copy -- a specific UEFI variable store file --\n+#     from @template for each new virtual machine definition created.\n+#     @template itself is never mapped into virtual machines, only\n+#     individual copies of it are.  The file created by copying\n+#     @template is used for persistently storing the non-volatile\n+#     UEFI variables of a virtual machine definition.  The\n+#     corresponding QEMU command line options are\n+#\n+#     ::\n+#\n+#         -device uefi-vars-x64,jsonfile=PATH_TO_PRIVATE_FILE\n+#\n+#     for x86_64 virtual machines, or\n+#\n+#     ::\n+#\n+#         -device uefi-vars-sysbus,jsonfile=PATH_TO_PRIVATE_FILE\n+#\n+#     for other UEFI architectures (aarch64, riscv64, loongarch64).\n+#\n+# Since: 11.0\n+##\n+{ 'struct' : 'FirmwareMemoryUefiVars',\n+  'data'   : { 'template' : 'str' }}\n+\n ##\n # @FirmwareMappingMemory:\n #\n@@ -380,10 +413,18 @@\n #     definitions.  The corresponding QEMU command line option is\n #     \"-bios @filename\".\n #\n+# @uefi-vars: Information specific to firmware builds that expect the\n+#     \"uefi-vars\" device to be used to provide access to the UEFI\n+#     variable store.  If the mapping contains this member, the\n+#     firmware descriptor must advertise both the @uefi interface\n+#     from @FirmwareOSInterface and the @host-uefi-vars feature from\n+#     @FirmwareFeature.  (Since 11.0)\n+#\n # Since: 3.0\n ##\n { 'struct' : 'FirmwareMappingMemory',\n-  'data'   : { 'filename' : 'str' } }\n+  'data'   : { 'filename' : 'str',\n+               '*uefi-vars' : 'FirmwareMemoryUefiVars' } }\n \n ##\n # @FirmwareMappingIgvm:\n","prefixes":["v3","1/1"]}