Expand description
TDX support.
Structsยง
- Tdcall
Instruction - TdxIo
Access - 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