]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf
MdeModulePkg: Drop VarLock from RuntimeDxe variable driver
[mirror_edk2.git] / MdeModulePkg / Universal / Variable / RuntimeDxe / VariableStandaloneMm.inf
1 ## @file
2 # Provides SMM variable service.
3 #
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.
11 #
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.
20 #
21 # Copyright (c) 2010 - 2019, Intel Corporation. All rights reserved.<BR>
22 # Copyright (c) 2018, Linaro, Ltd. All rights reserved.<BR>
23 # Copyright (c) Microsoft Corporation.
24 # SPDX-License-Identifier: BSD-2-Clause-Patent
25 #
26 ##
27
28 [Defines]
29 INF_VERSION = 0x0001001B
30 BASE_NAME = VariableStandaloneMm
31 FILE_GUID = 7ee2c0c1-c21a-4113-a53a-66824a95696f
32 MODULE_TYPE = MM_STANDALONE
33 VERSION_STRING = 1.0
34 PI_SPECIFICATION_VERSION = 0x00010032
35 ENTRY_POINT = VariableServiceInitialize
36
37 #
38 # The following information is for reference only and not required by the build tools.
39 #
40 # VALID_ARCHITECTURES = IA32 X64 ARM AARCH64
41 #
42
43
44 [Sources]
45 Reclaim.c
46 Variable.c
47 VariableSmm.c
48 VariableStandaloneMm.c
49 VariableNonVolatile.c
50 VariableNonVolatile.h
51 VariableParsing.c
52 VariableParsing.h
53 VariableRuntimeCache.c
54 VariableRuntimeCache.h
55 VarCheck.c
56 Variable.h
57 PrivilegePolymorphic.h
58 VariableExLib.c
59 TcgMorLockSmm.c
60 SpeculationBarrierSmm.c
61 VariableLockRequestToLock.c
62
63 [Packages]
64 MdePkg/MdePkg.dec
65 MdeModulePkg/MdeModulePkg.dec
66 StandaloneMmPkg/StandaloneMmPkg.dec
67
68 [LibraryClasses]
69 AuthVariableLib
70 BaseLib
71 BaseMemoryLib
72 DebugLib
73 HobLib
74 MemoryAllocationLib
75 MmServicesTableLib
76 StandaloneMmDriverEntryPoint
77 SynchronizationLib
78 VarCheckLib
79 VariablePolicyLib
80 VariablePolicyHelperLib
81
82 [Protocols]
83 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES
84 ## CONSUMES
85 ## NOTIFY
86 gEfiSmmFaultTolerantWriteProtocolGuid
87 ## PRODUCES
88 ## UNDEFINED # SmiHandlerRegister
89 gEfiSmmVariableProtocolGuid
90 gEfiMmEndOfDxeProtocolGuid ## NOTIFY
91 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES
92
93 [Guids]
94 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
95 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
96 ## SOMETIMES_CONSUMES ## HOB
97 ## SOMETIMES_PRODUCES ## SystemTable
98 gEfiAuthenticatedVariableGuid
99
100 ## SOMETIMES_CONSUMES ## GUID # Signature of Variable store header
101 ## SOMETIMES_PRODUCES ## GUID # Signature of Variable store header
102 ## SOMETIMES_CONSUMES ## HOB
103 ## SOMETIMES_PRODUCES ## SystemTable
104 gEfiVariableGuid
105
106 ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"
107 ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"
108 ## SOMETIMES_CONSUMES ## Variable:L"Lang"
109 ## SOMETIMES_PRODUCES ## Variable:L"Lang"
110 gEfiGlobalVariableGuid
111
112 gEfiMemoryOverwriteControlDataGuid ## SOMETIMES_CONSUMES ## Variable:L"MemoryOverwriteRequestControl"
113 gEfiMemoryOverwriteRequestControlLockGuid ## SOMETIMES_PRODUCES ## Variable:L"MemoryOverwriteRequestControlLock"
114
115 gEfiSystemNvDataFvGuid ## CONSUMES ## GUID
116 gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB
117
118 ## SOMETIMES_CONSUMES ## Variable:L"VarErrorFlag"
119 ## SOMETIMES_PRODUCES ## Variable:L"VarErrorFlag"
120 gEdkiiVarErrorFlagGuid
121
122 [FixedPcd]
123 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES
124 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES
125 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES
126 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES
127 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES
128 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize ## CONSUMES
129 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES
130 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES
131 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES
132 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES
133 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES
134 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES
135 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable ## SOMETIMES_CONSUMES
136 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved ## SOMETIMES_CONSUMES
137
138 [FeaturePcd]
139 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.
140 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang
141
142 [Depex]
143 TRUE