From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 7EED97803E0 for ; Thu, 25 Apr 2024 12:12:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=6nHXel5o+079b88j7G3OeC4bUndD0PBwQpZuWs4ObbU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1714047168; v=1; b=agpVQn4U1OTpM0devs3XI42mNjak1vp+FtP0pn/2pweuZeu27gluUi6rYfJGXBqdxv60vqg0 mbxKm1SifEvbySu8cJyiBKc5u4OdgZLEXwre+4ddFIMjTGlZzVqy7FQrweP3sQXEFtcRzJC1Czy N9idwymEGv7URsdTqvt8I+puVgjC/x1y3OIAQSDk0jmYezipI3qo6odlwHHvMn9LXXwNfRA7sem j/UbyZEVqNxkPSxkPoPlYdu0pplm1K3JvJwy1JkZsJtlrB5xXeMpZ+M+oyrnuaR6e1IU1VwHcH2 zRHdYFB1zZ4nWyLG+P7JZXzbZ9iGrtX0cbVIOwxZoqh/Q== X-Received: by 127.0.0.2 with SMTP id 4uSjYY7687511xiu98kIIEH1; Thu, 25 Apr 2024 05:12:48 -0700 X-Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web10.15336.1714047166355308364 for ; Thu, 25 Apr 2024 05:12:47 -0700 X-Received: from loongson.cn (unknown [10.2.9.245]) by gateway (Coremail) with SMTP id _____8DxKPG5SCpm1MoCAA--.13343S3; Thu, 25 Apr 2024 20:12:41 +0800 (CST) X-Received: from code-server.gen (unknown [10.2.9.245]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxQ1a5SCpmng0FAA--.1176S2; Thu, 25 Apr 2024 20:12:41 +0800 (CST) From: "Chao Li" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jiewen Yao , Gerd Hoffmann , Leif Lindholm , Sami Mujawar , Sunil V L , Andrei Warkentin Subject: [edk2-devel] [PATCH v3 0/7] Adjust the QemuFwCfgLibMmio and add PEI stage Date: Thu, 25 Apr 2024 20:12:32 +0800 Message-Id: <20240425121232.3009016-1-lichao@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxQ1a5SCpmng0FAA--.1176S2 X-CM-SenderInfo: xolfxt3r6o00pqjv00gofq/1tbiAQASCGYpxJMJoQAAsr X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Thu, 25 Apr 2024 05:12:47 -0700 Resent-From: lichao@loongson.cn Reply-To: devel@edk2.groups.io,lichao@loongson.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: oGmd1b9jWZpUHtRzY5V4gVu9x7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=agpVQn4U; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Patch1: Added three PCDs for QemuFwCfgLibMmio Patch2: Sparate QemuFwCfgLibMmio.c into two files and default as DXE stage library. Patch3: Added QemuFwCfgMmiLib PEI version Patch4: Rename QemuFwCfgLibMmio.inf to QemuFwCfgMmioDxeLib.inf and enable it in AARCH64 and RISCV64. V1 -> V2: 1. Use HOBs instead of PCD. 2. The old patch2 is divided into two parts, one is code splitting, and the other is functional changes. 3. add two patches to keep the safe when change the platform DSC file. V2 -> V3: 1. Merge three HOBs into a single HOB. 2. Remove the dynamic global variables in PEI. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4755 PR: https://github.com/tianocore/edk2/pull/5568 Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Gerd Hoffmann Cc: Leif Lindholm Cc: Sami Mujawar Cc: Sunil V L Cc: Andrei Warkentin Chao Li (7): OvmfPkg: Separate QemuFwCfgLibMmio.c into two files OvmfPkg: Add the way of HOBs in QemuFwCfgLibMmio OvmfPkg: Add the QemuFwCfgMmioLib PEI stage version OvmfPkg: Copy the same new INF as QemuFwCfgLibMmio.inf ArmVirtPkg: Enable QemuFwCfgMmioDxeLib.inf OvmfPkg/RiscVVirt: Enable QemuFwCfgMmioDxeLib.inf OvmfPkg: Remove QemuFwCfgLibMmio.inf ArmVirtPkg/ArmVirtQemu.dsc | 2 +- ArmVirtPkg/ArmVirtQemuKernel.dsc | 2 +- .../Library/QemuFwCfgLib/QemuFwCfgLibMmio.c | 249 +++++------------ .../QemuFwCfgLib/QemuFwCfgLibMmioInternal.h | 253 ++++++++++++++++++ .../Library/QemuFwCfgLib/QemuFwCfgMmioDxe.c | 222 +++++++++++++++ ...CfgLibMmio.inf => QemuFwCfgMmioDxeLib.inf} | 5 +- .../Library/QemuFwCfgLib/QemuFwCfgMmioPei.c | 228 ++++++++++++++++ .../QemuFwCfgLib/QemuFwCfgMmioPeiLib.inf | 49 ++++ OvmfPkg/RiscVVirt/RiscVVirtQemu.dsc | 2 +- 9 files changed, 822 insertions(+), 190 deletions(-) create mode 100644 OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibMmioInternal.h create mode 100644 OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioDxe.c rename OvmfPkg/Library/QemuFwCfgLib/{QemuFwCfgLibMmio.inf => QemuFwCfgMmioDxeLib.inf} (81%) create mode 100644 OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioPei.c create mode 100644 OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioPeiLib.inf -- 2.27.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118291): https://edk2.groups.io/g/devel/message/118291 Mute This Topic: https://groups.io/mt/105728764/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-