Crate tdx_tdcall

Source
Expand description

Guest-Side (TDCALL) Interface Helper Functions

This crate implements the helper functions for the TDCALL interface functions defined in Intel TDX Module specifiction and the TDVMCALL sub-functions defined in Intel TDX Guest-Hypervisor Communication Interface specification. It also provides the constants and data structures that are defined in the specifications.

Please refer to following links for detail: Intel TDX Module v1.0 Spec Intel TDX Module v1.5 Spec Intel TDX Guest-Hypervisor Communication Interface Spec Intel TDX Guest-Hypervisor Communication Interface Spec v1.5

A subset of TDCALL interface functions is defined in crate::tdx, and the TDG.MR.REPORT leaf function and TDREPORT_STRUCT related definitions are defined in crate::tdreport separately.

Modules§

asm
tdreport
tdx
Implemention of a subset of TDCALL functions defined in Intel TDX Module v1.0 and v1.5 Spec and TDVMCALL sub-functions defined in TDX GHCI Spec.

Structs§

TdVmcallArgs
TdcallArgs

Enums§

TdCallError
TDCALL instruction return error code
TdVmcallError
TDVMCALL sub-function return error code

Constants§

TDCALL_STATUS_PAGE_ALREADY_ACCEPTED
TDCALL_STATUS_PAGE_SIZE_MISMATCH
USE_TDX_EMULATION

Functions§

td_call
td_vmcall
td_vmcall_ex