2 # Provides SMM variable service.
4 # This module installs SMM variable protocol into SMM protocol database,
5 # which can be used by SMM driver, and installs SMM variable protocol
6 # into BS protocol database, which can be used to notify the SMM Runtime
7 # Dxe driver that the SMM variable service is ready.
8 # This module should be used with SMM Runtime DXE module together. The
9 # SMM Runtime DXE module would install variable arch protocol and variable
10 # write arch protocol based on SMM variable module.
12 # Caution: This module requires additional review when modified.
13 # This driver will have external input - variable data and communicate buffer in SMM mode.
14 # This external input must be validated carefully to avoid security issues such as
15 # buffer overflow or integer overflow.
16 # The whole SMM authentication variable design relies on the integrity of flash part and SMM.
17 # which is assumed to be protected by platform. All variable code and metadata in flash/SMM Memory
18 # may not be modified without authorization. If platform fails to protect these resources,
19 # the authentication service provided in this driver will be broken, and the behavior is undefined.
21 # Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
22 # Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>
23 # SPDX-License-Identifier: BSD-2-Clause-Patent
28 INF_VERSION = 0x0001001B
29 BASE_NAME = VariableStandaloneMm
30 FILE_GUID = 7ee2c0c1-c21a-4113-a53a-66824a95696f
31 MODULE_TYPE = MM_STANDALONE
33 PI_SPECIFICATION_VERSION = 0x00010032
34 ENTRY_POINT = VariableServiceInitialize
37 # The following information is for reference only and not required by the build tools.
39 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
47 VariableStandaloneMm.c
50 PrivilegePolymorphic.h
53 SpeculationBarrierSmm.c
57 MdeModulePkg/MdeModulePkg.dec
58 StandaloneMmPkg/StandaloneMmPkg.dec
68 StandaloneMmDriverEntryPoint
73 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES
76 gEfiSmmFaultTolerantWriteProtocolGuid
78 ## UNDEFINED # SmiHandlerRegister
79 gEfiSmmVariableProtocolGuid
80 gEfiMmEndOfDxeProtocolGuid ## NOTIFY
81 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES
84 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
85 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
86 ## SOMETIMES_CONSUMES ## HOB
87 ## SOMETIMES_PRODUCES ## SystemTable
88 gEfiAuthenticatedVariableGuid
90 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
91 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
92 ## SOMETIMES_CONSUMES ## HOB
93 ## SOMETIMES_PRODUCES ## SystemTable
96 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"
97 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"
98 ## SOMETIMES_CONSUMES ## Variable:L"Lang"
99 ## SOMETIMES_PRODUCES ## Variable:L"Lang"
100 gEfiGlobalVariableGuid
102 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"
103 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"
105 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID
106 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB
108 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"
109 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"
110 gEdkiiVarErrorFlagGuid
113 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
114 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES
115 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES
116 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES
117 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES
118 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES
119 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES
120 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES
121 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES
122 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES
123 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES
124 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES
125 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES
126 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES
129 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.
130 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang