Enum tdx_guest::tdcall::TdCallError

source ·
pub enum TdCallError {
Show 21 variants TdxNoValidVeInfo, TdxOperandInvalid, TdxOperandBusy, TdxPageAlreadyAccepted, TdxPageSizeMismatch, TdxMetadataFieldIdIncorrect, TdxMetadataFieldNotWritable, TdxMetadataFieldNotReadable, TdxMetadataFieldValueNotValid, TdxOpStateIncorrect, TdxOperandAddrRangeError, TdxPageMetadataIncorrect, TdxServtdInfoHashMismatch, TdxServtdNotBound, TdxServtdUuidMismatch, TdxTargetUuidMismatch, TdxTargetUuidUpdated, TdxTdFatal, TdxTdKeysNotConfigured, TdxTdcsNotAllocated, Other,
}

Variants§

§

TdxNoValidVeInfo

There is no valid #VE information.

§

TdxOperandInvalid

Operand is invalid.

§

TdxOperandBusy

The operand is busy (e.g., it is locked in Exclusive mode).

§

TdxPageAlreadyAccepted

Page has already been accepted.

§

TdxPageSizeMismatch

Requested page size does not match the current GPA mapping size.

§

TdxMetadataFieldIdIncorrect

The provided FIELD_ID is incorrect.

§

TdxMetadataFieldNotWritable

Field code and write mask are for a read-only field.

§

TdxMetadataFieldNotReadable

Field code is for an unreadable field.

§

TdxMetadataFieldValueNotValid

The provided field value is not valid.

§

TdxOpStateIncorrect

The TD’s OP_STATE is incorrect for the required operation.

§

TdxOperandAddrRangeError

Operand address is out of range (e.g., not in a TDMR).

§

TdxPageMetadataIncorrect

Physical page metadata (in PAMT) are incorrect for the requested operation.

§

TdxServtdInfoHashMismatch

Service TD hash of TDINFO_STRUCT does not match the currently bound hash.

§

TdxServtdNotBound

Service TD is not bound.

§

TdxServtdUuidMismatch

Service TD UUID does not match the currently bound UUID.

§

TdxTargetUuidMismatch

Target TD UUID does not match the requested TD_UUID.

§

TdxTargetUuidUpdated

Target TD UUID does not match the requested TD_UUID, but pre-migration target TD UUID does match it.

§

TdxTdFatal

TD is in a FATAL error state.

§

TdxTdKeysNotConfigured

TD keys have not been configured on the hardware.

§

TdxTdcsNotAllocated

TDCS pages have not been allocated.

§

Other

Trait Implementations§

source§

impl Debug for TdCallError

source§

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

Formats the value using the given formatter. Read more
source§

impl From<TdCallError> for InitError

source§

fn from(error: TdCallError) -> Self

Converts to this type from the input type.
source§

impl From<u64> for TdCallError

source§

fn from(val: u64) -> Self

Converts to this type from the input type.
source§

impl PartialEq for TdCallError

source§

fn eq(&self, other: &TdCallError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for TdCallError

Auto Trait Implementations§

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.