audk/UefiCpuPkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLib.inf
xieyuanh 8f21911951 UefiCpuPkg: Add MM Unblock Page Library
This library provides an interface to request non-MMRAM pages to be
mapped/unblocked from inside MM environment.

For MM modules that need to access areas outside of
MMRAMs, the agents responsible for setting up these regions must use
this API to enable access to these memory areas from within MM. During
the IPL, when RestrictedMemoryAccess is enabled,
this unblocked memory is specifically used to create a BuildResourceHob,
 which allocates storage for the SMM accessible DRAM (non-MMIO) range.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Hongbin1 Zhang <hongbin1.zhang@intel.com>
Cc: Wei6 Xu <wei6.xu@intel.com>
Cc: Dun Tan <dun.tan@intel.com>

Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
2024-08-28 15:25:27 +00:00

48 lines
1.2 KiB
INI

## @file
# Instance of MM Unblock Page Library.
#
# This library provides an interface to request non-MMRAM pages to be mapped/unblocked
# from inside MM environment.
#
# For MM modules that need to access regions outside of MMRAMs, the agents that set up
# these regions are responsible for invoking this API in order for these memory areas
# to be accessed from inside MM.
#
# Copyright (c) Microsoft Corporation.
# Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
#
##
[Defines]
INF_VERSION = 0x0001001B
BASE_NAME = MmUnblockMemoryLib
FILE_GUID = CBFE5800-70FD-4D9A-AA78-DB617294077E
MODULE_TYPE = PEIM
VERSION_STRING = 1.0
LIBRARY_CLASS = MmUnblockMemoryLib
#
# VALID_ARCHITECTURES = IA32 X64
#
[Sources]
MmUnblockMemoryLib.c
[Packages]
UefiCpuPkg/UefiCpuPkg.dec
MdePkg/MdePkg.dec
[LibraryClasses]
HobLib
DebugLib
BaseMemoryLib
PeiServicesLib
[Ppis]
gEfiPeiMmCommunicationPpiGuid
[Guids]
gMmUnblockRegionHobGuid