]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
MdeModulePkg/Variable: Add RT GetVariable() cache support
[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
9d510e61 22# SPDX-License-Identifier: BSD-2-Clause-Patent\r
4b738c76 23#\r
4b738c76
HT
24##\r
25\r
26[Defines]\r
27 INF_VERSION = 0x00010005\r
28 BASE_NAME = VariableSmm\r
6036e94d 29 MODULE_UNI_FILE = VariableSmm.uni\r
4b738c76
HT
30 FILE_GUID = 23A089B3-EED5-4ac5-B2AB-43E3298C2343\r
31 MODULE_TYPE = DXE_SMM_DRIVER\r
32 VERSION_STRING = 1.0\r
33 PI_SPECIFICATION_VERSION = 0x0001000A\r
34 ENTRY_POINT = VariableServiceInitialize\r
35\r
36#\r
37# The following information is for reference only and not required by the build tools.\r
38#\r
39# VALID_ARCHITECTURES = IA32 X64\r
40#\r
41\r
42\r
43[Sources]\r
44 Reclaim.c\r
45 Variable.c\r
a855f63e 46 VariableTraditionalMm.c\r
4b738c76 47 VariableSmm.c\r
6b0d7b01
MK
48 VariableNonVolatile.c\r
49 VariableNonVolatile.h\r
20a27a64
MK
50 VariableParsing.c\r
51 VariableParsing.h\r
aab3b9b9
MK
52 VariableRuntimeCache.c\r
53 VariableRuntimeCache.h\r
efb01a10 54 VarCheck.c\r
4b738c76 55 Variable.h\r
00663d04 56 PrivilegePolymorphic.h\r
fa0737a8 57 VariableExLib.c\r
2f6aa774 58 TcgMorLockSmm.c\r
49395ea0 59 SpeculationBarrierSmm.c\r
4b738c76
HT
60\r
61[Packages]\r
62 MdePkg/MdePkg.dec\r
63 MdeModulePkg/MdeModulePkg.dec\r
64\r
65[LibraryClasses]\r
66 UefiDriverEntryPoint\r
67 MemoryAllocationLib\r
68 BaseLib\r
69 SynchronizationLib\r
70 UefiLib\r
a855f63e 71 MmServicesTableLib\r
4b738c76
HT
72 BaseMemoryLib\r
73 DebugLib\r
74 DxeServicesTableLib\r
75 HobLib\r
76 PcdLib\r
842b1242 77 SmmMemLib\r
fa0737a8 78 AuthVariableLib\r
8021f4c7 79 VarCheckLib\r
fda8f631 80 UefiBootServicesTableLib\r
4b738c76
HT
81\r
82[Protocols]\r
6036e94d
SZ
83 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r
84 ## CONSUMES\r
85 ## NOTIFY\r
86 gEfiSmmFaultTolerantWriteProtocolGuid\r
87 ## PRODUCES\r
88 ## UNDEFINED # SmiHandlerRegister\r
89 gEfiSmmVariableProtocolGuid\r
a855f63e 90 gEfiMmEndOfDxeProtocolGuid ## NOTIFY\r
efb01a10 91 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r
fda8f631
LE
92 gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES\r
93 gEfiTcg2ProtocolGuid ## SOMETIMES_CONSUMES\r
4b738c76
HT
94\r
95[Guids]\r
8d878f84
LG
96 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
97 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
6036e94d 98 ## SOMETIMES_CONSUMES ## HOB\r
fa0737a8
SZ
99 ## SOMETIMES_PRODUCES ## SystemTable\r
100 gEfiAuthenticatedVariableGuid\r
101\r
8d878f84
LG
102 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
103 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
fa0737a8
SZ
104 ## SOMETIMES_CONSUMES ## HOB\r
105 ## SOMETIMES_PRODUCES ## SystemTable\r
6036e94d 106 gEfiVariableGuid\r
fa0737a8 107\r
6036e94d
SZ
108 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"\r
109 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"\r
110 ## SOMETIMES_CONSUMES ## Variable:L"Lang"\r
111 ## SOMETIMES_PRODUCES ## Variable:L"Lang"\r
6036e94d 112 gEfiGlobalVariableGuid\r
fa0737a8 113\r
8d878f84
LG
114 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"\r
115 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"\r
2f6aa774 116\r
fa0737a8 117 gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol\r
6036e94d 118 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID\r
fa0737a8 119 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB\r
8d878f84
LG
120\r
121 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"\r
122 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"\r
123 gEdkiiVarErrorFlagGuid\r
4b738c76
HT
124\r
125[Pcd]\r
fa0737a8
SZ
126 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES\r
127 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES\r
128 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES\r
129 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES\r
130 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES\r
9b4a2032 131 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES\r
fa0737a8
SZ
132 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r
133 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r
134 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r
4edb1866
SZ
135 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r
136 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r
fa0737a8 137 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r
7cd69959
SZ
138 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES\r
139 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES\r
0fb5e515 140\r
4b738c76 141[FeaturePcd]\r
fa0737a8
SZ
142 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r
143 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r
4b738c76
HT
144\r
145[Depex]\r
146 TRUE\r
147\r
6036e94d
SZ
148[UserExtensions.TianoCore."ExtraFiles"]\r
149 VariableSmmExtra.uni\r