#define TDX_EXT_EXIT_QUAL_TYPE_MASK GENMASK(3, 0) #define TDX_EXT_EXIT_QUAL_TYPE_PENDING_EPT_VIOLATION 6 /* * TD_PARAMS is provided as an input to TDH_MNG_INIT, the size of which is 1024B.
*/ struct td_params {
u64 attributes;
u64 xfam;
u16 max_vcpus;
u8 reserved0[6];
/* * Guest uses MAX_PA for GPAW when set. * 0: GPA.SHARED bit is GPA[47] * 1: GPA.SHARED bit is GPA[51]
*/ #define TDX_CONFIG_FLAGS_MAX_GPAW BIT_ULL(0)
/* * TDH.VP.ENTER, TDG.VP.VMCALL preserves RBP * 0: RBP can be used for TDG.VP.VMCALL input. RBP is clobbered. * 1: RBP can't be used for TDG.VP.VMCALL input. RBP is preserved.
*/ #define TDX_CONFIG_FLAGS_NO_RBP_MOD BIT_ULL(2)
/* * TDX requires the frequency to be defined in units of 25MHz, which is the * frequency of the core crystal clock on TDX-capable platforms, i.e. the TDX * module can only program frequencies that are multiples of 25MHz. The * frequency must be between 100mhz and 10ghz (inclusive).
*/ #define TDX_TSC_KHZ_TO_25MHZ(tsc_in_khz) ((tsc_in_khz) / (25 * 1000)) #define TDX_TSC_25MHZ_TO_KHZ(tsc_in_25mhz) ((tsc_in_25mhz) * (25 * 1000)) #define TDX_MIN_TSC_FREQUENCY_KHZ (100 * 1000) #define TDX_MAX_TSC_FREQUENCY_KHZ (10 * 1000 * 1000)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.