Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2195845/?format=api
{ "id": 2195845, "url": "http://patchwork.ozlabs.org/api/patches/2195845/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212062522.99565-12-anisinha@redhat.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "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": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260212062522.99565-12-anisinha@redhat.com>", "list_archive_url": null, "date": "2026-02-12T06:24:55", "name": "[v4,11/31] hw/i386: export a new function x86_bios_rom_reload", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "bed6032a82af1076bb2ff61d78609944ef1747e6", "submitter": { "id": 86030, "url": "http://patchwork.ozlabs.org/api/people/86030/?format=api", "name": "Ani Sinha", "email": "anisinha@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260212062522.99565-12-anisinha@redhat.com/mbox/", "series": [ { "id": 491935, "url": "http://patchwork.ozlabs.org/api/series/491935/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=491935", "date": "2026-02-12T06:24:45", "name": "Introduce support for confidential guest reset (x86)", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/491935/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2195845/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2195845/checks/", "tags": {}, "related": [], "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=YkfD17Y3;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=google header.b=n6ReXjyt;\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 4fBQP32mJZz1xvb\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 12 Feb 2026 17:28:55 +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 1vqQ9c-0007mR-6M; Thu, 12 Feb 2026 01:26:20 -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 <anisinha@redhat.com>)\n id 1vqQ9X-0007jQ-RO\n for qemu-devel@nongnu.org; Thu, 12 Feb 2026 01:26:15 -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 <anisinha@redhat.com>)\n id 1vqQ9W-0005FM-7s\n for qemu-devel@nongnu.org; Thu, 12 Feb 2026 01:26:15 -0500", "from mail-pg1-f198.google.com (mail-pg1-f198.google.com\n [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-97-6z6_XUTvOOKexsM1x7TXOg-1; Thu, 12 Feb 2026 01:26:11 -0500", "by mail-pg1-f198.google.com with SMTP id\n 41be03b00d2f7-c6e24ee93a6so607045a12.0\n for <qemu-devel@nongnu.org>; Wed, 11 Feb 2026 22:26:11 -0800 (PST)", "from rhel9-box.lan ([122.164.27.113])\n by smtp.googlemail.com with ESMTPSA id\n 98e67ed59e1d1-3567e7d95d8sm4894122a91.2.2026.02.11.22.26.07\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 11 Feb 2026 22:26:10 -0800 (PST)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1770877573;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=zlhPepsbkrDPw6Fl6PcI0YXFm5apjWAR4raOyitrg44=;\n b=YkfD17Y3KIkYIXaaWN33ogG/aP6OgzNirjihwTh7JW0937aeRlAvjeVqgz7/PfO+EaU7c5\n lqhTW9JTiVLsxc/+DoDbkSR9711SxILJhJV7nMBRU0KEiTRdKnKJ1cVqLfFe4Wqnq184Ak\n gZzq8XIIUaoThQnRiZ2/IJewnDKXo/Y=", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=redhat.com; s=google; t=1770877571; x=1771482371; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=zlhPepsbkrDPw6Fl6PcI0YXFm5apjWAR4raOyitrg44=;\n b=n6ReXjyt4MGCcVFCB6wq54ytWLIu8QOT8C4DFQdNfEqit4UDBobKeY14gH8piNZsXd\n j00Q3kqlwSEHMRTtZOM15vi4XKLzs3yV6K5Q61GwD3eV1W9nv4s9xLv9zxLO3LNE6vsH\n ZLiP/SYLbcO+ZmFin1H3jV1u9IbGd3akG+Cwh77JZ8q8Dzufzc/62PRSRCPjHdCdok/h\n r+jVfPOz6Ode2L+lvM7W0S9igBHWVr01ycdW1I/0n43FXXGFR3lqvnvxqIKo1X/NByEM\n rVdsPe8CVQtRPyh3ifkSlF7FARYUt892ya+sosYwv2YJArx16+79GSd3iO5xoM687TMN\n Rrfw==" ], "X-MC-Unique": "6z6_XUTvOOKexsM1x7TXOg-1", "X-Mimecast-MFC-AGG-ID": "6z6_XUTvOOKexsM1x7TXOg_1770877571", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770877571; x=1771482371;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=zlhPepsbkrDPw6Fl6PcI0YXFm5apjWAR4raOyitrg44=;\n b=ZfWFvQnkBCzU4Q+Pe1kCZ691boQCYY/WxS8Med/zcD6pf09NcMNgTRMEpRcxKL9ZZL\n 3pKwODyFOFDJ0k/jtYF5XJfIpN3oQQWA4LtgWVsVoP5JhInU7kXwqFFCwZnZ6PfNXZvj\n /6IRj2Oku3G40wfmCl0oHIwoi19vY+dI38BfUI9Wr4co4zPqpc/gIJg3QYup1hZqBz8l\n 7S4xZ340eVWBhxOCQrUU3adqNHk4wOY5gvMEngeBQHU6QDPI7oXr4qUeDeJEF9a3v+vt\n rqu2r4vlI074RdJu2g9S7xAbUWbEIp6+7pN1X2ry3BD/zAVFmIz5AKiD8JKw8n8F0gWl\n ow5Q==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCWYBjr/ZoTMvqzNHLE33PtD64gEndJqCnCZQKda0cXc3NyX6P0fm7h++HTA4MnVSiqowoGsydF+svii@nongnu.org", "X-Gm-Message-State": "AOJu0YytjzFvaWQjv/3gbb4AYZqfaBJledcaAKAWSRYQdg3/uveIEveQ\n rhaQQa23l+t4Pchq+iuCga7fgFonXnuxh4sNSV4hK966sIR22RI7Os8xKyfci47Qa6QcQ3Fxhal\n Kpj9cDGGAkKPYUove5Y7Nr+zjPNqnQvXFrdlowwOucwHPO/2WWdLpo/yF", "X-Gm-Gg": "AZuq6aLy+siY0pLix756uJnBq++MSVBprB6XcHXuizB4mfxUo/HVi6tpQidCoHejIbu\n BRu157RzzG0pjqBynTpRMZPT4WzNHkZwKm0/JhcM0Far3IPP3FB8JIxkwq4bFGB6Zs8gfibP5cL\n QXIDjRL7E9wo/En+WQZQlExmPshnKiP72CLi0ZhGRn9akru+iKQEfocBcU0BE10xI0OyNKh6cLg\n jJvj8JSqmj3pFfsZqCiiElOVrQIfdgCZLl8YDqvVmLa4xRhz75fFxr7i0u1u0Gllkq07WkshhA4\n oueE2eTo2h801GGdMQuVMfppWgXbvVQgoSzlMfJ4dML7HEKNecQaXbVGtdB0SYR14dwfJYkNHk5\n gQs2lkiUqVNVAzoqdt48J2lPQpCJnC/KT8gB+X7TqD1swLq8i7wU3ook=", "X-Received": [ "by 2002:a17:90b:4a8d:b0:353:2972:74a4 with SMTP id\n 98e67ed59e1d1-35692d84ac5mr1321827a91.13.1770877570779;\n Wed, 11 Feb 2026 22:26:10 -0800 (PST)", "by 2002:a17:90b:4a8d:b0:353:2972:74a4 with SMTP id\n 98e67ed59e1d1-35692d84ac5mr1321815a91.13.1770877570366;\n Wed, 11 Feb 2026 22:26:10 -0800 (PST)" ], "From": "Ani Sinha <anisinha@redhat.com>", "To": "\"Michael S. Tsirkin\" <mst@redhat.com>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Paolo Bonzini <pbonzini@redhat.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Eduardo Habkost <eduardo@habkost.net>", "Cc": "kraxel@redhat.com, Ani Sinha <anisinha@redhat.com>,\n Bernhard Beschow <shentey@gmail.com>, qemu-devel@nongnu.org", "Subject": "[PATCH v4 11/31] hw/i386: export a new function x86_bios_rom_reload", "Date": "Thu, 12 Feb 2026 11:54:55 +0530", "Message-ID": "<20260212062522.99565-12-anisinha@redhat.com>", "X-Mailer": "git-send-email 2.42.0", "In-Reply-To": "<20260212062522.99565-1-anisinha@redhat.com>", "References": "<20260212062522.99565-1-anisinha@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=170.10.129.124;\n envelope-from=anisinha@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.001,\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_H5=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": "Confidential guest smust reload their bios rom upon reset. This is because\nbios memory is encrypted and upon reset, the contents of the old bios memory\nis lost and cannot be re-used. To this end, export a new x86 function\nx86_bios_rom_reload() to reload the bios again. This function will be used in\nthe subsequent patches.\n\nReviewed-by: Bernhard Beschow <shentey@gmail.com>\nSigned-off-by: Ani Sinha <anisinha@redhat.com>\n---\n hw/i386/x86-common.c | 21 +++++++++++++++++++++\n include/hw/i386/x86.h | 1 +\n 2 files changed, 22 insertions(+)", "diff": "diff --git a/hw/i386/x86-common.c b/hw/i386/x86-common.c\nindex 18f2e2cfb9..b5759f6993 100644\n--- a/hw/i386/x86-common.c\n+++ b/hw/i386/x86-common.c\n@@ -1089,6 +1089,27 @@ static void load_bios_from_file(X86MachineState *x86ms, const char *bios_name,\n exit(1);\n }\n \n+void x86_bios_rom_reload(X86MachineState *x86ms)\n+{\n+ int bios_size;\n+ const char *bios_name;\n+ char *filename;\n+\n+ if (memory_region_size(&x86ms->bios) == 0) {\n+ /* if -bios is not used */\n+ return;\n+ }\n+\n+ bios_name = MACHINE(x86ms)->firmware ?: \"bios.bin\";\n+ filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name);\n+\n+ bios_size = get_bios_size(x86ms, bios_name, filename);\n+\n+ void *ptr = memory_region_get_ram_ptr(&x86ms->bios);\n+ load_image_size(filename, ptr, bios_size);\n+ x86_firmware_configure(0x100000000ULL - bios_size, ptr, bios_size);\n+}\n+\n void x86_bios_rom_init(X86MachineState *x86ms, const char *default_firmware,\n MemoryRegion *rom_memory, bool isapc_ram_fw)\n {\ndiff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h\nindex 0dffba95f9..66080da54a 100644\n--- a/include/hw/i386/x86.h\n+++ b/include/hw/i386/x86.h\n@@ -127,6 +127,7 @@ void x86_isa_bios_init(MemoryRegion *isa_bios, MemoryRegion *isa_memory,\n MemoryRegion *bios, bool read_only);\n void x86_bios_rom_init(X86MachineState *x86ms, const char *default_firmware,\n MemoryRegion *rom_memory, bool isapc_ram_fw);\n+void x86_bios_rom_reload(X86MachineState *x86ms);\n \n void x86_load_linux(X86MachineState *x86ms,\n FWCfgState *fw_cfg,\n", "prefixes": [ "v4", "11/31" ] }