#[repr(C)]pub struct TdInfo {
pub attributes: u64,
pub xfam: u64,
pub mrtd: [u8; 48],
pub mr_config_id: [u8; 48],
pub mr_owner: [u8; 48],
pub mr_owner_config: [u8; 48],
pub rtmr0: [u8; 48],
pub rtmr1: [u8; 48],
pub rtmr2: [u8; 48],
pub rtmr3: [u8; 48],
pub servtd_hash: [u8; 48],
pub reserved: [u8; 64],
}
Expand description
TDINFO_STRUCT is defined as the TDX-specific TEE_INFO part of TDG.MR.REPORT. It contains the measurements and initial configuration of the TD that was locked at initialization and a set of measurement registers that are run-time extendable. These values are copied from the TDCS by the TDG.MR.REPORT function. Refer to the [TDX Module Base Spec] for additional details.
Fields§
§attributes: u64
TD’s ATTRIBUTES.
xfam: u64
TD’s XFAM.
mrtd: [u8; 48]
Measurement of the initial contents of the TD.
mr_config_id: [u8; 48]
Software-defined ID for non-owner-defined configuration of the guest TD – e.g., run-time or OS configuration.
mr_owner: [u8; 48]
Software-defined ID for the guest TD’s owner.
mr_owner_config: [u8; 48]
Software-defined ID for owner-defined configuration of the guest TD – e.g., specific to the workload rather than the run-time or OS.
rtmr0: [u8; 48]
Array of NUM_RTMRS (4) run-time extendable measurement registers.
rtmr1: [u8; 48]
§rtmr2: [u8; 48]
§rtmr3: [u8; 48]
§servtd_hash: [u8; 48]
If is one or more bound or pre-bound service TDs, SERVTD_HASH is the SHA384 hash of the TDINFO_STRUCTs of those service TDs bound. Else, SERVTD_HASH is 0.
reserved: [u8; 64]