TianoCore EDK2 master
|
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 () |
Null stub of TdxLib
Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file IntelTdxNull.c.
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>
[in] | Leaf | Leaf number of TDCALL instruction |
[in] | Arg1 | Arg1 |
[in] | Arg2 | Arg2 |
[in] | Arg3 | Arg3 |
[in,out] | Results | Returned result of the Leaf function |
Definition at line 31 of file IntelTdxNull.c.
BOOLEAN EFIAPI TdIsEnabled | ( | ) |
Probe if TD is enabled.
Definition at line 79 of file IntelTdxNull.c.
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.
[in] | Leaf | Number of sub-functions |
[in] | Arg1 | Arg1 |
[in] | Arg2 | Arg2 |
[in] | Arg3 | Arg3 |
[in] | Arg4 | Arg4 |
[in,out] | Results | Returned result of the sub-function |
Definition at line 59 of file IntelTdxNull.c.