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) Microsoft Corporation.
23 # SPDX-License-Identifier: BSD-2-Clause-Patent
28 INF_VERSION = 0x00010005
29 BASE_NAME = VariableSmm
30 MODULE_UNI_FILE = VariableSmm.uni
31 FILE_GUID = 23A089B3-EED5-4ac5-B2AB-43E3298C2343
32 MODULE_TYPE = DXE_SMM_DRIVER
34 PI_SPECIFICATION_VERSION = 0x0001000A
35 ENTRY_POINT = VariableServiceInitialize
38 # The following information is for reference only and not required by the build tools.
40 # VALID_ARCHITECTURES = IA32 X64
47 VariableTraditionalMm.c
53 VariableRuntimeCache.c
54 VariableRuntimeCache.h
57 PrivilegePolymorphic.h
60 SpeculationBarrierSmm.c
64 MdeModulePkg/MdeModulePkg.dec
81 UefiBootServicesTableLib
83 VariablePolicyHelperLib
86 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES
89 gEfiSmmFaultTolerantWriteProtocolGuid
91 ## UNDEFINED # SmiHandlerRegister
92 gEfiSmmVariableProtocolGuid
93 gEfiMmEndOfDxeProtocolGuid ## NOTIFY
94 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES
95 gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES
96 gEfiTcg2ProtocolGuid ## SOMETIMES_CONSUMES
99 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
100 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
101 ## SOMETIMES_CONSUMES ## HOB
102 ## SOMETIMES_PRODUCES ## SystemTable
103 gEfiAuthenticatedVariableGuid
105 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
106 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
107 ## SOMETIMES_CONSUMES ## HOB
108 ## SOMETIMES_PRODUCES ## SystemTable
111 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"
112 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"
113 ## SOMETIMES_CONSUMES ## Variable:L"Lang"
114 ## SOMETIMES_PRODUCES ## Variable:L"Lang"
115 gEfiGlobalVariableGuid
117 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"
118 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"
120 gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol
121 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID
122 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB
124 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"
125 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"
126 gEdkiiVarErrorFlagGuid
129 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
130 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES
131 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES
132 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES
133 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES
134 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES
135 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES
136 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES
137 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES
138 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES
139 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES
140 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES
141 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES
142 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES
145 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.
146 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang
151 [UserExtensions.TianoCore."ExtraFiles"]