]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
MdeModulePkg: Drop VarLock from RuntimeDxe variable driver
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableSmm.inf
CommitLineData
4b738c76 1## @file\r
fa0737a8
SZ
2# Provides SMM variable service.\r
3#\r
4b738c76 4# This module installs SMM variable protocol into SMM protocol database,\r
fa0737a8 5# which can be used by SMM driver, and installs SMM variable protocol\r
4b738c76
HT
6# into BS protocol database, which can be used to notify the SMM Runtime\r
7# Dxe driver that the SMM variable service is ready.\r
fa0737a8
SZ
8# This module should be used with SMM Runtime DXE module together. The\r
9# SMM Runtime DXE module would install variable arch protocol and variable\r
4b738c76
HT
10# write arch protocol based on SMM variable module.\r
11#\r
12# Caution: This module requires additional review when modified.\r
13# This driver will have external input - variable data and communicate buffer in SMM mode.\r
fa0737a8
SZ
14# This external input must be validated carefully to avoid security issues such as\r
15# buffer overflow or integer overflow.\r
16# The whole SMM authentication variable design relies on the integrity of flash part and SMM.\r
17# which is assumed to be protected by platform. All variable code and metadata in flash/SMM Memory\r
18# may not be modified without authorization. If platform fails to protect these resources,\r
19# the authentication service provided in this driver will be broken, and the behavior is undefined.\r
4b738c76 20#\r
7cd69959 21# Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
b6490426 22# Copyright (c) Microsoft Corporation.\r
9d510e61 23# SPDX-License-Identifier: BSD-2-Clause-Patent\r
4b738c76 24#\r
4b738c76
HT
25##\r
26\r
27[Defines]\r
28 INF_VERSION = 0x00010005\r
29 BASE_NAME = VariableSmm\r
6036e94d 30 MODULE_UNI_FILE = VariableSmm.uni\r
4b738c76
HT
31 FILE_GUID = 23A089B3-EED5-4ac5-B2AB-43E3298C2343\r
32 MODULE_TYPE = DXE_SMM_DRIVER\r
33 VERSION_STRING = 1.0\r
34 PI_SPECIFICATION_VERSION = 0x0001000A\r
35 ENTRY_POINT = VariableServiceInitialize\r
36\r
37#\r
38# The following information is for reference only and not required by the build tools.\r
39#\r
40# VALID_ARCHITECTURES = IA32 X64\r
41#\r
42\r
43\r
44[Sources]\r
45 Reclaim.c\r
46 Variable.c\r
a855f63e 47 VariableTraditionalMm.c\r
4b738c76 48 VariableSmm.c\r
6b0d7b01
MK
49 VariableNonVolatile.c\r
50 VariableNonVolatile.h\r
20a27a64
MK
51 VariableParsing.c\r
52 VariableParsing.h\r
aab3b9b9
MK
53 VariableRuntimeCache.c\r
54 VariableRuntimeCache.h\r
efb01a10 55 VarCheck.c\r
4b738c76 56 Variable.h\r
00663d04 57 PrivilegePolymorphic.h\r
fa0737a8 58 VariableExLib.c\r
2f6aa774 59 TcgMorLockSmm.c\r
49395ea0 60 SpeculationBarrierSmm.c\r
124b3f92 61 VariableLockRequestToLock.c\r
4b738c76
HT
62\r
63[Packages]\r
64 MdePkg/MdePkg.dec\r
65 MdeModulePkg/MdeModulePkg.dec\r
66\r
67[LibraryClasses]\r
68 UefiDriverEntryPoint\r
69 MemoryAllocationLib\r
70 BaseLib\r
71 SynchronizationLib\r
72 UefiLib\r
a855f63e 73 MmServicesTableLib\r
4b738c76
HT
74 BaseMemoryLib\r
75 DebugLib\r
76 DxeServicesTableLib\r
77 HobLib\r
78 PcdLib\r
842b1242 79 SmmMemLib\r
fa0737a8 80 AuthVariableLib\r
8021f4c7 81 VarCheckLib\r
fda8f631 82 UefiBootServicesTableLib\r
b6490426
BB
83 VariablePolicyLib\r
84 VariablePolicyHelperLib\r
4b738c76
HT
85\r
86[Protocols]\r
6036e94d
SZ
87 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r
88 ## CONSUMES\r
89 ## NOTIFY\r
90 gEfiSmmFaultTolerantWriteProtocolGuid\r
91 ## PRODUCES\r
92 ## UNDEFINED # SmiHandlerRegister\r
93 gEfiSmmVariableProtocolGuid\r
a855f63e 94 gEfiMmEndOfDxeProtocolGuid ## NOTIFY\r
efb01a10 95 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r
fda8f631
LE
96 gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES\r
97 gEfiTcg2ProtocolGuid ## SOMETIMES_CONSUMES\r
4b738c76
HT
98\r
99[Guids]\r
8d878f84
LG
100 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
101 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
6036e94d 102 ## SOMETIMES_CONSUMES ## HOB\r
fa0737a8
SZ
103 ## SOMETIMES_PRODUCES ## SystemTable\r
104 gEfiAuthenticatedVariableGuid\r
105\r
8d878f84
LG
106 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
107 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
fa0737a8
SZ
108 ## SOMETIMES_CONSUMES ## HOB\r
109 ## SOMETIMES_PRODUCES ## SystemTable\r
6036e94d 110 gEfiVariableGuid\r
fa0737a8 111\r
6036e94d
SZ
112 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"\r
113 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"\r
114 ## SOMETIMES_CONSUMES ## Variable:L"Lang"\r
115 ## SOMETIMES_PRODUCES ## Variable:L"Lang"\r
6036e94d 116 gEfiGlobalVariableGuid\r
fa0737a8 117\r
8d878f84
LG
118 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"\r
119 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"\r
2f6aa774 120\r
fa0737a8 121 gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol\r
6036e94d 122 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID\r
fa0737a8 123 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB\r
8d878f84
LG
124\r
125 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"\r
126 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"\r
127 gEdkiiVarErrorFlagGuid\r
4b738c76
HT
128\r
129[Pcd]\r
fa0737a8
SZ
130 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES\r
131 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES\r
132 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES\r
133 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES\r
134 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES\r
9b4a2032 135 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES\r
fa0737a8
SZ
136 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r
137 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r
138 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r
4edb1866
SZ
139 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r
140 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r
fa0737a8 141 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r
7cd69959
SZ
142 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES\r
143 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES\r
0fb5e515 144\r
4b738c76 145[FeaturePcd]\r
fa0737a8
SZ
146 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r
147 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r
4b738c76
HT
148\r
149[Depex]\r
150 TRUE\r
151\r
6036e94d
SZ
152[UserExtensions.TianoCore."ExtraFiles"]\r
153 VariableSmmExtra.uni\r