#[repr(u16)]pub enum TioMsgTdiStatus {
Success = 0,
Invalid = 1,
Unbound = 2,
}Expand description
Encoding of the tdi_status field of TioMsgTdiInfoRsp. See “SEV-TIO
Firmware Interface Specification”, Revision 0.91, Table 61.
Despite the name, this is NOT the TDISP TDI state enumeration. It is a
SEV-TIO firmware status code describing the outcome of the TDI_INFO lookup
for the given guest device id.
Variants§
Success = 0
The TDI is bound to the guest and currently in the RUN state.
Invalid = 1
The firmware considers the request invalid (for example, an unknown guest device id or a mismatch against the firmware’s bookkeeping).
Unbound = 2
The TDI exists but is currently unbound (i.e. in the CONFIG_UNLOCKED state from the TDISP perspective).
Implementations§
Source§impl TioMsgTdiStatus
impl TioMsgTdiStatus
Sourcepub fn from_u16(value: u16) -> Option<Self>
pub fn from_u16(value: u16) -> Option<Self>
Convert a raw tdi_status value from a firmware response into
TioMsgTdiStatus. Returns None if the value is not a known
encoding.
Trait Implementations§
Source§impl Clone for TioMsgTdiStatus
impl Clone for TioMsgTdiStatus
Source§fn clone(&self) -> TioMsgTdiStatus
fn clone(&self) -> TioMsgTdiStatus
Returns a duplicate 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 TioMsgTdiStatus
impl Debug for TioMsgTdiStatus
Source§impl PartialEq for TioMsgTdiStatus
impl PartialEq for TioMsgTdiStatus
impl Copy for TioMsgTdiStatus
impl Eq for TioMsgTdiStatus
impl StructuralPartialEq for TioMsgTdiStatus
Auto Trait Implementations§
impl Freeze for TioMsgTdiStatus
impl RefUnwindSafe for TioMsgTdiStatus
impl Send for TioMsgTdiStatus
impl Sync for TioMsgTdiStatus
impl Unpin for TioMsgTdiStatus
impl UnsafeUnpin for TioMsgTdiStatus
impl UnwindSafe for TioMsgTdiStatus
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