]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SmmIpl: expose MM communicate 2 protocol
authorArd Biesheuvel <ard.biesheuvel@arm.com>
Sat, 18 Apr 2020 16:45:13 +0000 (18:45 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 12 May 2020 19:23:44 +0000 (19:23 +0000)
commit9ad2b981bd6469b163ec0c177c9d549bfe22147f
tree3cbc0745cee447be2c9d0808fea50e6794dd18e7
parentc857042471c58a6e0da4959edde27dc2cd685efe
MdeModulePkg/SmmIpl: expose MM communicate 2 protocol

The MM communicate 2 protocol was introduced to factor out the mismatch
between traditional MM, which requires the physical address of the MM
buffer to be passed, and standalone MM, which copies the MM communicate
buffer data into a separate buffer, requiring the virtual address. For
this reason, MM communicate 2 carries both addresses, allowing the
implementation to decide which address it needs.

This hides this implementation detail from the callers of the protocol,
which simply passes both addresses without having to reason about what the
implementation of the protocol actually needs.

Note that the old version of the protocol is retained, in order to support
existing implementations that don't require this flexibility.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
MdeModulePkg/Core/PiSmmCore/PiSmmIpl.c
MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf