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 1BE9A941382 for ; Fri, 17 May 2024 09:49:32 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=t4X5BItzEMl6iw0h889Qv7W34WeRfMx4G9/JEbDkNRM=; 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=1715939371; v=1; b=Nx9Oj0q8jNT2D1CGniXmx0GqkG1BEm4p2bb55fFqzip2FeXaipTeutx6eY+IS/CXisD0w/1u jC0IJHdTtQdHs85Hz707FO43ehsrGPQj8YqtBonbZ+M4DCEmQGf2xiTzDLvPPKcx3g0gpJGEi9e p4O7+uY1az1ONd5TAxR5W2VD2jGi2oqZl+v4UaI+5IfnzXdQEX88rK7cajSXmZA/K9UxPHuoQdv +EuANr8FubkUZ8nw+J+aPEZ9a12CXK5goxIeUNl4Ow8oXjL5Nhj1rusDYg2ormkxH76dkW1OrqK CVbwsHTVtP+WEjlbymAa7Mv45FSqfYw8Sn2+e2V/xphzQ== X-Received: by 127.0.0.2 with SMTP id 53rpYY7687511x8bdFolK304; Fri, 17 May 2024 02:49:31 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mx.groups.io with SMTP id smtpd.web10.36016.1715939370910548931 for ; Fri, 17 May 2024 02:49:30 -0700 X-CSE-ConnectionGUID: IGCNtEhHTAWk6bMHfgfDYg== X-CSE-MsgGUID: +aobhh2qTImPak5I35d/Ow== X-IronPort-AV: E=McAfee;i="6600,9927,11074"; a="11570281" X-IronPort-AV: E=Sophos;i="6.08,167,1712646000"; d="scan'208";a="11570281" X-Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2024 02:49:31 -0700 X-CSE-ConnectionGUID: OJC6F7a4QXGPe/suCkFlOg== X-CSE-MsgGUID: a7O7rk12QsiJXbhjn4deNg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,167,1712646000"; d="scan'208";a="31739119" X-Received: from unknown (HELO shwdeopenlab702.ccr.corp.intel.com) ([10.239.55.43]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2024 02:49:28 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Ray Ni , Liming Gao , Jiaxin Wu , Ard Biesheuvel , Leif Lindholm , Sami Mujawar , Gerd Hoffmann , Andrew Fish , Jiewen Yao Subject: [edk2-devel] [PATCH 0/9] Allocate and unblock variable runtime cache buffer in PEI Date: Fri, 17 May 2024 17:49:08 +0800 Message-Id: <20240517094917.513-1-dun.tan@intel.com> MIME-Version: 1.0 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: Fri, 17 May 2024 02:49:30 -0700 Resent-From: dun.tan@intel.com Reply-To: devel@edk2.groups.io,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ciAFBHGRNWAwGyz8BxeWA4dlx7686176AA= 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=Nx9Oj0q8; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=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 This patch set defines a new VARIABLE_RUNTIME_CACHE_INFO HOB. The HOB is used to store the address and size of the buffer that will be used for variable runtime service when the PcdEnableVariableRuntimeCache is TRUE. In following patches, when PcdEnableVariableRuntimeCache is TRUE, VariablePei will install a callback of gEfiPeiMemoryDiscoveredPpiGuid to allocate the needed buffer for different type variable runtime cache and build the HOB. Then VariableSmmRuntimeDxe driver will consume gEdkiiVariableRuntimeCacheInfoHobGuid to initialize the variable runtime cache related content. The code to allocate and unblock the runtime cache buffer in VariableSmmRuntimeDxe is also removed in this patc set. PR for review: https://github.com/tianocore/edk2/pull/5607 Cc: Ray Ni Cc: Liming Gao Cc: Jiaxin Wu Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sami Mujawar Cc: Gerd Hoffmann Cc: Andrew Fish Cc: Jiewen Yao Dun Tan (9): MdeModulePkg:Add new gEdkiiVariableRuntimeCacheInfoHobGuid ArmVirtPkg: Add MmUnblockMemoryLib in DSC EmulatorPkg: Add MmUnblockMemoryLib in DSC OvmfPkg: Add MmUnblockMemoryLib in DSC MdeModulePkg:Create gEdkiiVariableRuntimeCacheInfoHobGuid MdeModulePkg:Remove unnecessary global variable MdeModulePkg:Consume gEdkiiVariableRuntimeCacheInfoHobGuid MdeModulePkg: Refine InitVariableCache() MdeModulePkg:Add global variable mVariableRtCacheInfo ArmVirtPkg/ArmVirtCloudHv.dsc | 2 ++ EmulatorPkg/EmulatorPkg.dsc | 1 + MdeModulePkg/Include/Guid/VariableRuntimeCacheInfo.h | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 3 +++ MdeModulePkg/Universal/Variable/Pei/Variable.c | 298 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- MdeModulePkg/Universal/Variable/Pei/Variable.h | 3 +++ MdeModulePkg/Universal/Variable/Pei/VariablePei.inf | 8 +++++++- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c | 293 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf | 5 +++-- OvmfPkg/OvmfPkgIa32X64.dsc | 2 +- 10 files changed, 506 insertions(+), 174 deletions(-) create mode 100644 MdeModulePkg/Include/Guid/VariableRuntimeCacheInfo.h -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#119017): https://edk2.groups.io/g/devel/message/119017 Mute This Topic: https://groups.io/mt/106150796/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-