Struct x86defs::tdx::TdCallResultCode
source · #[repr(transparent)]pub struct TdCallResultCode(pub u32);
Expand description
Result code for tdcall
to the TDX module, returned in RAX.
Tuple Fields§
§0: u32
Implementations§
source§impl TdCallResultCode
impl TdCallResultCode
pub const SUCCESS: TdCallResultCode = _
pub const NON_RECOVERABLE_VCPU: TdCallResultCode = _
pub const NON_RECOVERABLE_TD: TdCallResultCode = _
pub const INTERRUPTED_RESUMABLE: TdCallResultCode = _
pub const INTERRUPTED_RESTARTABLE: TdCallResultCode = _
pub const NON_RECOVERABLE_TD_NON_ACCESSIBLE: TdCallResultCode = _
pub const INVALID_RESUMPTION: TdCallResultCode = _
pub const NON_RECOVERABLE_TD_WRONG_APIC_MODE: TdCallResultCode = _
pub const CROSS_TD_FAULT: TdCallResultCode = _
pub const CROSS_TD_TRAP: TdCallResultCode = _
pub const NON_RECOVERABLE_TD_CORRUPTED_MD: TdCallResultCode = _
pub const OPERAND_INVALID: TdCallResultCode = _
pub const OPERAND_ADDR_RANGE_ERROR: TdCallResultCode = _
pub const OPERAND_BUSY: TdCallResultCode = _
pub const PREVIOUS_TLB_EPOCH_BUSY: TdCallResultCode = _
pub const SYS_BUSY: TdCallResultCode = _
pub const RND_NO_ENTROPY: TdCallResultCode = _
pub const OPERAND_BUSY_HOST_PRIORITY: TdCallResultCode = _
pub const HOST_PRIORITY_BUSY_TIMEOUT: TdCallResultCode = _
pub const PAGE_METADATA_INCORRECT: TdCallResultCode = _
pub const PAGE_ALREADY_FREE: TdCallResultCode = _
pub const PAGE_NOT_OWNED_BY_TD: TdCallResultCode = _
pub const PAGE_NOT_FREE: TdCallResultCode = _
pub const TD_ASSOCIATED_PAGES_EXIST: TdCallResultCode = _
pub const SYS_INIT_NOT_PENDING: TdCallResultCode = _
pub const SYS_LP_INIT_NOT_DONE: TdCallResultCode = _
pub const SYS_LP_INIT_DONE: TdCallResultCode = _
pub const SYS_NOT_READY: TdCallResultCode = _
pub const SYS_SHUTDOWN: TdCallResultCode = _
pub const SYS_KEY_CONFIG_NOT_PENDING: TdCallResultCode = _
pub const SYS_STATE_INCORRECT: TdCallResultCode = _
pub const SYS_INVALID_HANDOFF: TdCallResultCode = _
pub const SYS_INCOMPATIBLE_SIGSTRUCT: TdCallResultCode = _
pub const SYS_LP_INIT_NOT_PENDING: TdCallResultCode = _
pub const SYS_CONFIG_NOT_PENDING: TdCallResultCode = _
pub const INCOMPATIBLE_SEAM_CAPABILITIES: TdCallResultCode = _
pub const TD_FATAL: TdCallResultCode = _
pub const TD_NON_DEBUG: TdCallResultCode = _
pub const TDCS_NOT_ALLOCATED: TdCallResultCode = _
pub const LIFECYCLE_STATE_INCORRECT: TdCallResultCode = _
pub const OP_STATE_INCORRECT: TdCallResultCode = _
pub const NO_VCPUS: TdCallResultCode = _
pub const TDCX_NUM_INCORRECT: TdCallResultCode = _
pub const VCPU_STATE_INCORRECT: TdCallResultCode = _
pub const VCPU_ASSOCIATED: TdCallResultCode = _
pub const VCPU_NOT_ASSOCIATED: TdCallResultCode = _
pub const NO_VALID_VE_INFO: TdCallResultCode = _
pub const MAX_VCPUS_EXCEEDED: TdCallResultCode = _
pub const TSC_ROLLBACK: TdCallResultCode = _
pub const TD_VMCS_FIELD_NOT_INITIALIZED: TdCallResultCode = _
pub const MCS_FIELD_ERROR: TdCallResultCode = _
pub const KEY_GENERATION_FAILED: TdCallResultCode = _
pub const TD_KEYS_NOT_CONFIGURED: TdCallResultCode = _
pub const KEY_STATE_INCORRECT: TdCallResultCode = _
pub const KEY_CONFIGURED: TdCallResultCode = _
pub const WBCACHE_NOT_COMPLETE: TdCallResultCode = _
pub const HKID_NOT_FREE: TdCallResultCode = _
pub const NO_HKID_READY_TO_WBCACHE: TdCallResultCode = _
pub const WBCACHE_RESUME_ERROR: TdCallResultCode = _
pub const FLUSHVP_NOT_DONE: TdCallResultCode = _
pub const NUM_ACTIVATED_HKIDS_NOT_SUPPORTED: TdCallResultCode = _
pub const INCORRECT_CPUID_VALUE: TdCallResultCode = _
pub const LIMIT_CPUID_MAXVAL_SET: TdCallResultCode = _
pub const INCONSISTENT_CPUID_FIELD: TdCallResultCode = _
pub const CPUID_MAX_SUBLEAVES_UNRECOGNIZED: TdCallResultCode = _
pub const CPUID_LEAF_1F_FORMAT_UNRECOGNIZED: TdCallResultCode = _
pub const INVALID_WBINVD_SCOPE: TdCallResultCode = _
pub const INVALID_PKG_ID: TdCallResultCode = _
pub const ENABLE_MONITOR_FSM_NOT_SET: TdCallResultCode = _
pub const CPUID_LEAF_NOT_SUPPORTED: TdCallResultCode = _
pub const SMRR_NOT_LOCKED: TdCallResultCode = _
pub const INVALID_SMRR_CONFIGURATION: TdCallResultCode = _
pub const SMRR_OVERLAPS_CMR: TdCallResultCode = _
pub const SMRR_LOCK_NOT_SUPPORTED: TdCallResultCode = _
pub const SMRR_NOT_SUPPORTED: TdCallResultCode = _
pub const INCONSISTENT_MSR: TdCallResultCode = _
pub const INCORRECT_MSR_VALUE: TdCallResultCode = _
pub const SEAMREPORT_NOT_AVAILABLE: TdCallResultCode = _
pub const SEAMDB_GETREF_NOT_AVAILABLE: TdCallResultCode = _
pub const SEAMDB_REPORT_NOT_AVAILABLE: TdCallResultCode = _
pub const SEAMVERIFYREPORT_NOT_AVAILABLE: TdCallResultCode = _
pub const INVALID_TDMR: TdCallResultCode = _
pub const NON_ORDERED_TDMR: TdCallResultCode = _
pub const TDMR_OUTSIDE_CMRS: TdCallResultCode = _
pub const TDMR_ALREADY_INITIALIZED: TdCallResultCode = _
pub const INVALID_PAMT: TdCallResultCode = _
pub const PAMT_OUTSIDE_CMRS: TdCallResultCode = _
pub const PAMT_OVERLAP: TdCallResultCode = _
pub const INVALID_RESERVED_IN_TDMR: TdCallResultCode = _
pub const NON_ORDERED_RESERVED_IN_TDMR: TdCallResultCode = _
pub const CMR_LIST_INVALID: TdCallResultCode = _
pub const EPT_WALK_FAILED: TdCallResultCode = _
pub const EPT_ENTRY_FREE: TdCallResultCode = _
pub const EPT_ENTRY_NOT_FREE: TdCallResultCode = _
pub const EPT_ENTRY_NOT_PRESENT: TdCallResultCode = _
pub const EPT_ENTRY_NOT_LEAF: TdCallResultCode = _
pub const EPT_ENTRY_LEAF: TdCallResultCode = _
pub const GPA_RANGE_NOT_BLOCKED: TdCallResultCode = _
pub const GPA_RANGE_ALREADY_BLOCKED: TdCallResultCode = _
pub const TLB_TRACKING_NOT_DONE: TdCallResultCode = _
pub const EPT_INVALID_PROMOTE_CONDITIONS: TdCallResultCode = _
pub const PAGE_ALREADY_ACCEPTED: TdCallResultCode = _
pub const PAGE_SIZE_MISMATCH: TdCallResultCode = _
pub const GPA_RANGE_BLOCKED: TdCallResultCode = _
pub const EPT_ENTRY_STATE_INCORRECT: TdCallResultCode = _
pub const EPT_PAGE_NOT_FREE: TdCallResultCode = _
pub const L2_SEPT_WALK_FAILED: TdCallResultCode = _
pub const L2_SEPT_ENTRY_NOT_FREE: TdCallResultCode = _
pub const PAGE_ATTR_INVALID: TdCallResultCode = _
pub const L2_SEPT_PAGE_NOT_PROVIDED: TdCallResultCode = _
pub const METADATA_FIELD_ID_INCORRECT: TdCallResultCode = _
pub const METADATA_FIELD_NOT_WRITABLE: TdCallResultCode = _
pub const METADATA_FIELD_NOT_READABLE: TdCallResultCode = _
pub const METADATA_FIELD_VALUE_NOT_VALID: TdCallResultCode = _
pub const METADATA_LIST_OVERFLOW: TdCallResultCode = _
pub const INVALID_METADATA_LIST_HEADER: TdCallResultCode = _
pub const REQUIRED_METADATA_FIELD_MISSING: TdCallResultCode = _
pub const METADATA_ELEMENT_SIZE_INCORRECT: TdCallResultCode = _
pub const METADATA_LAST_ELEMENT_INCORRECT: TdCallResultCode = _
pub const METADATA_FIELD_CURRENTLY_NOT_WRITABLE: TdCallResultCode = _
pub const METADATA_WR_MASK_NOT_VALID: TdCallResultCode = _
pub const METADATA_FIRST_FIELD_ID_IN_CONTEXT: TdCallResultCode = _
pub const METADATA_FIELD_SKIP: TdCallResultCode = _
pub const SERVTD_ALREADY_BOUND_FOR_TYPE: TdCallResultCode = _
pub const SERVTD_TYPE_MISMATCH: TdCallResultCode = _
pub const SERVTD_ATTR_MISMATCH: TdCallResultCode = _
pub const SERVTD_INFO_HASH_MISMATCH: TdCallResultCode = _
pub const SERVTD_UUID_MISMATCH: TdCallResultCode = _
pub const SERVTD_NOT_BOUND: TdCallResultCode = _
pub const SERVTD_BOUND: TdCallResultCode = _
pub const TARGET_UUID_MISMATCH: TdCallResultCode = _
pub const TARGET_UUID_UPDATED: TdCallResultCode = _
pub const INVALID_MBMD: TdCallResultCode = _
pub const INCORRECT_MBMD_MAC: TdCallResultCode = _
pub const NOT_WRITE_BLOCKED: TdCallResultCode = _
pub const ALREADY_WRITE_BLOCKED: TdCallResultCode = _
pub const NOT_EXPORTED: TdCallResultCode = _
pub const MIGRATION_STREAM_STATE_INCORRECT: TdCallResultCode = _
pub const MAX_MIGS_NUM_EXCEEDED: TdCallResultCode = _
pub const EXPORTED_DIRTY_PAGES_REMAIN: TdCallResultCode = _
pub const MIGRATION_DECRYPTION_KEY_NOT_SET: TdCallResultCode = _
pub const TD_NOT_MIGRATABLE: TdCallResultCode = _
pub const PREVIOUS_EXPORT_CLEANUP_INCOMPLETE: TdCallResultCode = _
pub const NUM_MIGS_HIGHER_THAN_CREATED: TdCallResultCode = _
pub const IMPORT_MISMATCH: TdCallResultCode = _
pub const MIGRATION_EPOCH_OVERFLOW: TdCallResultCode = _
pub const MAX_EXPORTS_EXCEEDED: TdCallResultCode = _
pub const INVALID_PAGE_MAC: TdCallResultCode = _
pub const MIGRATED_IN_CURRENT_EPOCH: TdCallResultCode = _
pub const DISALLOWED_IMPORT_OVER_REMOVED: TdCallResultCode = _
pub const SOME_VCPUS_NOT_MIGRATED: TdCallResultCode = _
pub const ALL_VCPUS_IMPORTED: TdCallResultCode = _
pub const MIN_MIGS_NOT_CREATED: TdCallResultCode = _
pub const VCPU_ALREADY_EXPORTED: TdCallResultCode = _
pub const INVALID_MIGRATION_DECRYPTION_KEY: TdCallResultCode = _
pub const INVALID_CPUSVN: TdCallResultCode = _
pub const INVALID_REPORTMACSTRUCT: TdCallResultCode = _
pub const L2_EXIT_HOST_ROUTED_ASYNC: TdCallResultCode = _
pub const L2_EXIT_HOST_ROUTED_TDVMCALL: TdCallResultCode = _
pub const L2_EXIT_PENDING_INTERRUPT: TdCallResultCode = _
pub const PENDING_INTERRUPT: TdCallResultCode = _
pub const TD_EXIT_BEFORE_L2_ENTRY: TdCallResultCode = _
pub const TD_EXIT_ON_L2_VM_EXIT: TdCallResultCode = _
pub const TD_EXIT_ON_L2_TO_L1: TdCallResultCode = _
pub const GLA_NOT_CANONICAL: TdCallResultCode = _
Trait Implementations§
source§impl AsBytes for TdCallResultCodewhere
u32: AsBytes,
impl AsBytes for TdCallResultCodewhere
u32: AsBytes,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl Clone for TdCallResultCode
impl Clone for TdCallResultCode
source§fn clone(&self) -> TdCallResultCode
fn clone(&self) -> TdCallResultCode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TdCallResultCode
impl Debug for TdCallResultCode
source§impl FromBytes for TdCallResultCodewhere
u32: FromBytes,
impl FromBytes for TdCallResultCodewhere
u32: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for TdCallResultCodewhere
u32: FromZeroes,
impl FromZeroes for TdCallResultCodewhere
u32: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moresource§impl Hash for TdCallResultCode
impl Hash for TdCallResultCode
source§impl Ord for TdCallResultCode
impl Ord for TdCallResultCode
source§fn cmp(&self, other: &TdCallResultCode) -> Ordering
fn cmp(&self, other: &TdCallResultCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TdCallResultCode
impl PartialEq for TdCallResultCode
source§impl PartialOrd for TdCallResultCode
impl PartialOrd for TdCallResultCode
impl Copy for TdCallResultCode
impl Eq for TdCallResultCode
impl StructuralPartialEq for TdCallResultCode
Auto Trait Implementations§
impl Freeze for TdCallResultCode
impl RefUnwindSafe for TdCallResultCode
impl Send for TdCallResultCode
impl Sync for TdCallResultCode
impl Unpin for TdCallResultCode
impl UnwindSafe for TdCallResultCode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)