Struct tdx_guest::tdcall::TdInfo

source ·
#[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]

Trait Implementations§

source§

impl Debug for TdInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for TdInfo

§

impl RefUnwindSafe for TdInfo

§

impl Send for TdInfo

§

impl Sync for TdInfo

§

impl Unpin for TdInfo

§

impl UnwindSafe for TdInfo

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.