mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
UefiCpuPkg/AmdSvsmLib: add AmdSvsmUefiMmRequest
The SVSM_UEFI_MM_PROTOCOL protocol allows to send MM communication buffers to the SVSM (instead of edk2 MM code) and let SVSM manage EFI variables that way. This patch adds a helper function to send MM communication buffers to the SVSM to the AmdSvsmLib library header and a stub function to the Null library implementation. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
69ad229659
commit
891230f079
2 changed files with 29 additions and 0 deletions
|
|
@ -146,3 +146,10 @@ AmdSvsmQueryProtocol (
|
|||
OUT UINT32 *ProtocolMin,
|
||||
OUT UINT32 *ProtocolMax
|
||||
);
|
||||
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
AmdSvsmUefiMmRequest (
|
||||
IN UINT64 BufferAddr,
|
||||
IN UINT64 BufferSize
|
||||
);
|
||||
|
|
|
|||
|
|
@ -165,3 +165,25 @@ AmdSvsmQueryProtocol (
|
|||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
Perform a SVSM_UEFI_MM_REQUEST operation
|
||||
|
||||
Send the specified MM communication buffer to the SVSM.
|
||||
|
||||
@param[in] BufferAddr Physical address of the buffer.
|
||||
@param[in] BufferSize Size of the buffer.
|
||||
|
||||
@retval TRUE The command was processed.
|
||||
@retval FALSE The command was not processed.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
AmdSvsmUefiMmRequest (
|
||||
IN UINT64 BufferAddr,
|
||||
IN UINT64 BufferSize
|
||||
)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue