Function tdx_guest::tdcall::write_td_metadata

source ·
pub fn write_td_metadata(
    field_identifier: u64,
    data: u64,
    write_mask: u64,
) -> Result<u64, TdCallError>
Expand description

Write a TD-scope metadata field (control structure field) of a TD.

  • data: data to write to the field

  • write_mask: a 64b write mask to indicate which bits of the value in R8 are to be written to the field.

It returns previous contents of the field.