UefiCpuPkg/AmdSvsmLib: add AmdSvsmQueryProtocol

AmdSvsmQueryProtocol() is a helper function for QUERY_PROTOCOL
calls of the core svsm protocol.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann
2025-06-04 12:32:05 +02:00
committed by mergify[bot]
parent bdca3681e9
commit a72e6fe7ab
2 changed files with 21 additions and 0 deletions

View File

@@ -139,4 +139,13 @@ AmdSvsmVtpmCmd (
IN OUT UINT8 *Buffer
);
BOOLEAN
EFIAPI
AmdSvsmQueryProtocol (
IN UINT32 ProtocolId,
IN UINT32 ProtocolVersion,
OUT UINT32 *ProtocolMin,
OUT UINT32 *ProtocolMax
);
#endif

View File

@@ -153,3 +153,15 @@ AmdSvsmVtpmCmd (
{
return FALSE;
}
BOOLEAN
EFIAPI
AmdSvsmQueryProtocol (
IN UINT32 ProtocolId,
IN UINT32 ProtocolVersion,
OUT UINT32 *ProtocolMin,
OUT UINT32 *ProtocolMax
)
{
return FALSE;
}