]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
MdeModulePkg/Variable: Add RT GetVariable() cache support
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableSmm.inf
... / ...
CommitLineData
1## @file\r
2# Provides SMM variable service.\r
3#\r
4# This module installs SMM variable protocol into SMM protocol database,\r
5# which can be used by SMM driver, and installs SMM variable protocol\r
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
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
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
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
20#\r
21# Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>\r
22# SPDX-License-Identifier: BSD-2-Clause-Patent\r
23#\r
24##\r
25\r
26[Defines]\r
27 INF_VERSION = 0x00010005\r
28 BASE_NAME = VariableSmm\r
29 MODULE_UNI_FILE = VariableSmm.uni\r
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
46 VariableTraditionalMm.c\r
47 VariableSmm.c\r
48 VariableNonVolatile.c\r
49 VariableNonVolatile.h\r
50 VariableParsing.c\r
51 VariableParsing.h\r
52 VariableRuntimeCache.c\r
53 VariableRuntimeCache.h\r
54 VarCheck.c\r
55 Variable.h\r
56 PrivilegePolymorphic.h\r
57 VariableExLib.c\r
58 TcgMorLockSmm.c\r
59 SpeculationBarrierSmm.c\r
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
71 MmServicesTableLib\r
72 BaseMemoryLib\r
73 DebugLib\r
74 DxeServicesTableLib\r
75 HobLib\r
76 PcdLib\r
77 SmmMemLib\r
78 AuthVariableLib\r
79 VarCheckLib\r
80 UefiBootServicesTableLib\r
81\r
82[Protocols]\r
83 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r
84 ## CONSUMES\r
85 ## NOTIFY\r
86 gEfiSmmFaultTolerantWriteProtocolGuid\r
87 ## PRODUCES\r
88 ## UNDEFINED # SmiHandlerRegister\r
89 gEfiSmmVariableProtocolGuid\r
90 gEfiMmEndOfDxeProtocolGuid ## NOTIFY\r
91 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r
92 gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES\r
93 gEfiTcg2ProtocolGuid ## SOMETIMES_CONSUMES\r
94\r
95[Guids]\r
96 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
97 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
98 ## SOMETIMES_CONSUMES ## HOB\r
99 ## SOMETIMES_PRODUCES ## SystemTable\r
100 gEfiAuthenticatedVariableGuid\r
101\r
102 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header\r
103 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header\r
104 ## SOMETIMES_CONSUMES ## HOB\r
105 ## SOMETIMES_PRODUCES ## SystemTable\r
106 gEfiVariableGuid\r
107\r
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
112 gEfiGlobalVariableGuid\r
113\r
114 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"\r
115 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"\r
116\r
117 gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol\r
118 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID\r
119 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB\r
120\r
121 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"\r
122 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"\r
123 gEdkiiVarErrorFlagGuid\r
124\r
125[Pcd]\r
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
131 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES\r
132 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r
133 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r
134 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r
135 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r
136 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r
137 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r
138 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES\r
139 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES\r
140\r
141[FeaturePcd]\r
142 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r
143 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r
144\r
145[Depex]\r
146 TRUE\r
147\r
148[UserExtensions.TianoCore."ExtraFiles"]\r
149 VariableSmmExtra.uni\r