diff options
author | Yuanhao Xie <yuanhao.xie@intel.com> | 2024-05-24 14:45:09 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-08-28 15:25:27 +0000 |
commit | 21a2c8ae2a3802198838a9b5e3ae5a7d2ba0e7d8 (patch) | |
tree | 695f8b297bec400a9b232d48307c4b74f330a156 | |
parent | 45098bf1b84c9d798fcd4fafff46efb6d4e9c21e (diff) | |
download | edk2-21a2c8ae2a3802198838a9b5e3ae5a7d2ba0e7d8.zip edk2-21a2c8ae2a3802198838a9b5e3ae5a7d2ba0e7d8.tar.gz edk2-21a2c8ae2a3802198838a9b5e3ae5a7d2ba0e7d8.tar.bz2 |
UefiCpuPkg: Add Unblock Region HOB definition
Add Unblock Region HOB which defines the GUIDed HOB that describes
the memory region to be unblocked in MM environment.
Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
Co-authored-by: Jiaxin Wu <jiaxin.wu@intel.com>
Co-authored-by: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.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>
-rw-r--r-- | UefiCpuPkg/Include/Guid/MmUnblockRegion.h | 42 | ||||
-rw-r--r-- | UefiCpuPkg/UefiCpuPkg.dec | 3 |
2 files changed, 45 insertions, 0 deletions
diff --git a/UefiCpuPkg/Include/Guid/MmUnblockRegion.h b/UefiCpuPkg/Include/Guid/MmUnblockRegion.h new file mode 100644 index 0000000..f6a33c3 --- /dev/null +++ b/UefiCpuPkg/Include/Guid/MmUnblockRegion.h @@ -0,0 +1,42 @@ +/** @file
+ Defines the GUIDed HOB that describes the memory region to be unblocked in MM environment.
+
+ Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+**/
+
+#ifndef MM_UNBLOCK_REGION_H_
+#define MM_UNBLOCK_REGION_H_
+
+///
+/// The GUID of the UnblockRegion GUIDed HOB.
+///
+#define MM_UNBLOCK_REGION_HOB_GUID \
+ { \
+ 0x7c316fb3, 0x849e, 0x4ee7, {0x87, 0xfc, 0x16, 0x2d, 0x0b, 0x03, 0x42, 0xbf } \
+ }
+
+///
+/// The structure defines the data layout of the UnblockRegion GUIDed HOB.
+///
+typedef struct {
+ ///
+ /// Physical address of the first byte in the memory region. PhysicalStart must be
+ /// aligned on a 4 KiB boundary.
+ ///
+ EFI_PHYSICAL_ADDRESS PhysicalStart;
+
+ ///
+ /// Number of 4 KiB pages in the memory region.
+ ///
+ UINT64 NumberOfPages;
+
+ ///
+ /// GUID to identify the memory region.
+ ///
+ EFI_GUID IdentifierGuid;
+} MM_UNBLOCK_REGION;
+
+extern EFI_GUID gMmUnblockRegionHobGuid;
+
+#endif
diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index c026cf5..5ee4efc 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -108,6 +108,9 @@ ## Include/Guid/GhcbApicIds.h
gGhcbApicIdsGuid = { 0xbc964338, 0xee39, 0x4fc8, { 0xa2, 0x24, 0x10, 0x10, 0x8b, 0x17, 0x80, 0x1b }}
+ ## Include/Guid/MmUnblockRegion.h
+ gMmUnblockRegionHobGuid = { 0x7c316fb3, 0x849e, 0x4ee7, { 0x87, 0xfc, 0x16, 0x2d, 0x0b, 0x03, 0x42, 0xbf }}
+
[Protocols]
## Include/Protocol/SmmCpuService.h
gEfiSmmCpuServiceProtocolGuid = { 0x1d202cab, 0xc8ab, 0x4d5c, { 0x94, 0xf7, 0x3c, 0xfc, 0xc0, 0xd3, 0xd3, 0x35 }}
|