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:
Gerd Hoffmann 2025-05-14 17:20:11 +02:00 committed by mergify[bot]
parent 69ad229659
commit 891230f079
2 changed files with 29 additions and 0 deletions

View file

@ -146,3 +146,10 @@ AmdSvsmQueryProtocol (
OUT UINT32 *ProtocolMin,
OUT UINT32 *ProtocolMax
);
BOOLEAN
EFIAPI
AmdSvsmUefiMmRequest (
IN UINT64 BufferAddr,
IN UINT64 BufferSize
);

View file

@ -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;
}