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 # This program and the accompanying materials
23 # are licensed and made available under the terms and conditions of the BSD License
24 # which accompanies this distribution. The full text of the license may be found at
25 # http://opensource.org/licenses/bsd-license.php
26 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
27 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
32 INF_VERSION = 0x00010005
33 BASE_NAME = VariableSmm
34 MODULE_UNI_FILE = VariableSmm.uni
35 FILE_GUID = 23A089B3-EED5-4ac5-B2AB-43E3298C2343
36 MODULE_TYPE = DXE_SMM_DRIVER
38 PI_SPECIFICATION_VERSION = 0x0001000A
39 ENTRY_POINT = VariableServiceInitialize
42 # The following information is for reference only and not required by the build tools.
44 # VALID_ARCHITECTURES = IA32 X64
51 VariableTraditionalMm.c
55 PrivilegePolymorphic.h
58 SpeculationBarrierSmm.c
62 MdeModulePkg/MdeModulePkg.dec
79 UefiBootServicesTableLib
82 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES
85 gEfiSmmFaultTolerantWriteProtocolGuid
87 ## UNDEFINED # SmiHandlerRegister
88 gEfiSmmVariableProtocolGuid
89 gEfiMmEndOfDxeProtocolGuid ## NOTIFY
90 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES
91 gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES
92 gEfiTcg2ProtocolGuid ## SOMETIMES_CONSUMES
95 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
96 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
97 ## SOMETIMES_CONSUMES ## HOB
98 ## SOMETIMES_PRODUCES ## SystemTable
99 gEfiAuthenticatedVariableGuid
101 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
102 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
103 ## SOMETIMES_CONSUMES ## HOB
104 ## SOMETIMES_PRODUCES ## SystemTable
107 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"
108 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"
109 ## SOMETIMES_CONSUMES ## Variable:L"Lang"
110 ## SOMETIMES_PRODUCES ## Variable:L"Lang"
111 gEfiGlobalVariableGuid
113 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"
114 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"
116 gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol
117 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID
118 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB
120 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"
121 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"
122 gEdkiiVarErrorFlagGuid
125 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
126 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES
127 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES
128 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES
129 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES
130 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES
131 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES
132 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES
133 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES
134 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES
135 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES
136 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES
137 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES
138 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES
141 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.
142 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang
147 [UserExtensions.TianoCore."ExtraFiles"]