TianoCore EDK2 master
Loading...
Searching...
No Matches
IntelTdxNull.c File Reference
#include <Library/BaseLib.h>
#include <Uefi/UefiBaseType.h>

Go to the source code of this file.

Functions

UINTN EFIAPI TdCall (IN UINT64 Leaf, IN UINT64 Arg1, IN UINT64 Arg2, IN UINT64 Arg3, IN OUT VOID *Results)
 
UINTN EFIAPI TdVmCall (IN UINT64 Leaf, IN UINT64 Arg1, IN UINT64 Arg2, IN UINT64 Arg3, IN UINT64 Arg4, IN OUT VOID *Results)
 
BOOLEAN EFIAPI TdIsEnabled ()
 

Detailed Description

Null stub of TdxLib

Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file IntelTdxNull.c.

Function Documentation

◆ TdCall()

UINTN EFIAPI TdCall ( IN UINT64  Leaf,
IN UINT64  Arg1,
IN UINT64  Arg2,
IN UINT64  Arg3,
IN OUT VOID *  Results 
)

The TDCALL instruction causes a VM exit to the Intel TDX module. It is used to call guest-side Intel TDX functions, either local or a TD exit to the host VMM, as selected by Leaf. Leaf functions are described at <https://software.intel.com/content/ www/us/en/develop/articles/intel-trust-domain-extensions.html>

Parameters
[in]LeafLeaf number of TDCALL instruction
[in]Arg1Arg1
[in]Arg2Arg2
[in]Arg3Arg3
[in,out]ResultsReturned result of the Leaf function
Returns
EFI_SUCCESS
Other See individual leaf functions

Definition at line 31 of file IntelTdxNull.c.

◆ TdIsEnabled()

BOOLEAN EFIAPI TdIsEnabled ( )

Probe if TD is enabled.

Returns
TRUE TD is enabled.
FALSE TD is not enabled.

Definition at line 79 of file IntelTdxNull.c.

◆ TdVmCall()

UINTN EFIAPI TdVmCall ( IN UINT64  Leaf,
IN UINT64  Arg1,
IN UINT64  Arg2,
IN UINT64  Arg3,
IN UINT64  Arg4,
IN OUT VOID *  Results 
)

TDVMALL is a leaf function 0 for TDCALL. It helps invoke services from the host VMM to pass/receive information.

Parameters
[in]LeafNumber of sub-functions
[in]Arg1Arg1
[in]Arg2Arg2
[in]Arg3Arg3
[in]Arg4Arg4
[in,out]ResultsReturned result of the sub-function
Returns
EFI_SUCCESS
Other See individual sub-functions

Definition at line 59 of file IntelTdxNull.c.