Module tdx

Source
Expand description

TDX support.

Structsยง

TdcallInstruction
TdxIoAccess
Tdcall based io port access.

Staticsยง

TSC_FREQUENCY ๐Ÿ”’
Global variable to store tsc frequency.

Functionsยง

accept_pages
Accept pages from the specified range.
change_page_visibility
Change the visibility of pages. Note that pages that were previously host visible and are now private, must be reaccepted.
get_tdreport
Gets the TdReport.
get_tdx_tsc_reftime
Gets the timer ref time in 100ns, and None if it fails to get it
initialize_hypercalls
Initialize hypercalls for a TDX L1, sharing the hypercall I/O pages with the HV
invoke_tdcall_hypercall
Invokes a hypercall via a TDCALL
report_os_id ๐Ÿ”’
Writes a synthehtic register to tell the hypervisor the OS ID for the boot shim.
setup_vtl2_vp
tdcall ๐Ÿ”’
Perform a tdcall instruction with the specified inputs.
tdx_prepare_ap_trampoline
Update the TdxTrampolineContext, setting the necessary control registers for AP startup, and ensuring that LGDT will be skipped, so the GDT page does not need to be added to the e820 entries
uninitialize_hypercalls
Unitialize hypercalls for a TDX L1, stop sharing the hypercall I/O pages with the HV