]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/IntelTdxNull.c
5 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Library/BaseLib.h>
11 #include <Uefi/UefiBaseType.h>
14 The TDCALL instruction causes a VM exit to the Intel TDX module. It is
15 used to call guest-side Intel TDX functions, either local or a TD exit
16 to the host VMM, as selected by Leaf.
17 Leaf functions are described at <https://software.intel.com/content/
18 www/us/en/develop/articles/intel-trust-domain-extensions.html>
20 @param[in] Leaf Leaf number of TDCALL instruction
24 @param[in,out] Results Returned result of the Leaf function
27 @return Other See individual leaf functions
39 return EFI_UNSUPPORTED
;
43 TDVMALL is a leaf function 0 for TDCALL. It helps invoke services from the
44 host VMM to pass/receive information.
46 @param[in] Leaf Number of sub-functions
51 @param[in,out] Results Returned result of the sub-function
54 @return Other See individual sub-functions
68 return EFI_UNSUPPORTED
;
72 Probe if TD is enabled.
74 @return TRUE TD is enabled.
75 @return FALSE TD is not enabled.