]> git.proxmox.com Git - mirror_edk2.git/commit - StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
StandaloneMmPkg/Library: Install Variable Arch Protocol
authorJagadeesh Ujja <jagadeesh.ujja@arm.com>
Mon, 4 Mar 2019 08:53:59 +0000 (14:23 +0530)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 11 Mar 2019 11:39:06 +0000 (12:39 +0100)
commit326598e9b7591dc4117c453b270811f645d099b7
tree29ec7d15ef04ab4812457f2f19b649067deb6a80
parent690d60c0ada5ff137c84982220b3fdd112697aa3
StandaloneMmPkg/Library: Install Variable Arch Protocol

In a system implementing the variable store in MM, there are no variable
arch protocol and variable write arch protocol installed into the
DXE_SMM protocol database. On such systems, it is not required to
locate these protocols by the DXE runtime variable drivers because
it can be assumed that these protocols are already installed in the
MM context. But then such an implementation will deviate from the
existing traditional MM based variable driver implementation.

So in order to maintain consistency with the traditional MM variable
driver implementation, allow platforms to install these protocols into
the DXE protocol database but these protocol will not be consumed
by non-secure variable service runtime driver.

The Platform which uses StandaloneMM based secure variable storage
have to include this library

Example
In edk2-platforms/Platform/ARM/SgiPkg/SgiPlatform.dsc

  ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf {
    <LibraryClasses>
      NULL|StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
  }

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jagadeesh Ujja <jagadeesh.ujja@arm.com>
Acked-by "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.c [new file with mode: 0644]
StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf [new file with mode: 0644]