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