Skip to main content

FaultReason

Struct FaultReason 

Source
#[repr(transparent)]
pub struct FaultReason(pub u8);
Expand description

VT-d fault reason codes.

Tuple Fields§

§0: u8

Implementations§

Source§

impl FaultReason

Source

pub const ROOT_NOT_PRESENT: FaultReason

Root entry not present (P=0).

Source

pub const CONTEXT_NOT_PRESENT: FaultReason

Context entry not present (P=0).

Source

pub const INVALID_CONTEXT_ENTRY: FaultReason

Invalid context entry programming (reserved TT value).

Source

pub const ADDRESS_BEYOND_MGAW: FaultReason

Address beyond MGAW (IOVA overflow).

Source

pub const WRITE_ACCESS_DENIED: FaultReason

Write permission fault (W=0 in page table path).

Source

pub const READ_ACCESS_DENIED: FaultReason

Read permission fault (R=0 in page table path).

Source

pub const SL_PTE_ACCESS_ERROR: FaultReason

Error accessing second-level paging entry (GPA read failure).

Source

pub const ROOT_ENTRY_ACCESS_ERROR: FaultReason

Error accessing root entry (GPA read failure).

Source

pub const CONTEXT_ENTRY_ACCESS_ERROR: FaultReason

Error accessing context entry (GPA read failure).

Source

pub const ROOT_ENTRY_RESERVED_BIT: FaultReason

Reserved bit set in root entry.

Source

pub const CONTEXT_ENTRY_RESERVED_BIT: FaultReason

Reserved bit set in context entry.

Source

pub const SL_PTE_RESERVED_BIT: FaultReason

Reserved bit set in second-level paging entry.

Source

pub const CONTEXT_ENTRY_TT_BLOCK: FaultReason

Context entry blocks translation/translated requests.

Source

pub const OUTPUT_ADDR_IN_INTR_RANGE: FaultReason

Output address in interrupt address range.

Source

pub const INVALID_ROOT_TABLE_MODE: FaultReason

RTA.1: invalid translation table mode.

Source

pub const SCALABLE_ROOT_ACCESS_ERROR: FaultReason

SRT.1: scalable root-entry access error.

Source

pub const SCALABLE_ROOT_NOT_PRESENT: FaultReason

SRT.2: selected scalable root half not present.

Source

pub const SCALABLE_ROOT_RESERVED_BIT: FaultReason

SRT.3: reserved field in a present root half.

Source

pub const SCALABLE_CONTEXT_ACCESS_ERROR: FaultReason

SCT.1: scalable context-entry access error.

Source

pub const SCALABLE_CONTEXT_NOT_PRESENT: FaultReason

SCT.2: scalable context not present.

Source

pub const SCALABLE_CONTEXT_RESERVED_BIT: FaultReason

SCT.3: reserved field in a present context.

Source

pub const SCALABLE_INVALID_CONTEXT: FaultReason

SCT.4: invalid context programming, including RID_PASID > PDTS limit.

Source

pub const PASID_DIRECTORY_ACCESS_ERROR: FaultReason

SPD.1: PASID-directory access error.

Source

pub const PASID_DIRECTORY_NOT_PRESENT: FaultReason

SPD.2: PASID-directory entry not present.

Source

pub const PASID_DIRECTORY_RESERVED_BIT: FaultReason

SPD.3: reserved field in a present PASID-directory entry.

Source

pub const PASID_TABLE_ACCESS_ERROR: FaultReason

SPT.1: PASID-table access error.

Source

pub const PASID_TABLE_NOT_PRESENT: FaultReason

SPT.2: PASID-table entry not present.

Source

pub const PASID_TABLE_RESERVED_BIT: FaultReason

SPT.3: reserved field in a present PASID-table entry.

Source

pub const PASID_TABLE_INVALID_ENTRY: FaultReason

SPT.4: invalid PASID-table programming, including AW and PGTT.

Source

pub const SCALABLE_SL_PTE_ACCESS_ERROR: FaultReason

SSS.1: access error through a preceding second-stage paging entry.

Source

pub const SCALABLE_SL_PTE_NOT_PRESENT: FaultReason

SSS.2: R=W=0 in an entry or in accumulated second-stage permissions.

Source

pub const SCALABLE_SL_PTE_RESERVED_BIT: FaultReason

SSS.3: reserved field in a present second-stage paging entry.

Source

pub const SCALABLE_SL_ROOT_ACCESS_ERROR: FaultReason

SSS.4: access error through the PASID entry’s SSPTPTR.

Source

pub const SL_AD_UPDATE_NON_SNOOP: FaultReason

SSS.5: an A/D update is needed but page walks do not snoop caches.

Source

pub const SL_AD_UPDATE_FAILED: FaultReason

SSS.6: hardware failed to atomically update a second-stage A/D bit.

Source

pub const SCALABLE_ADDRESS_BEYOND_HAW: FaultReason

SGN.4: host input address exceeds HAW.

Source

pub const SCALABLE_ADDRESS_BEYOND_AGAW: FaultReason

SGN.5: second-stage input address exceeds min(MGAW, AGAW).

Source

pub const SCALABLE_WRITE_ACCESS_DENIED: FaultReason

SGN.6: write permission fault in scalable translation.

Source

pub const SCALABLE_READ_ACCESS_DENIED: FaultReason

SGN.7: read permission fault in scalable second-stage translation.

Source

pub const SCALABLE_OUTPUT_ADDR_IN_INTR_RANGE: FaultReason

SGN.8: scalable translation output is in the interrupt address range.

Source

pub const IR_RESERVED_FIELD: FaultReason

Reserved field set in remappable interrupt request.

Source

pub const IR_INDEX_EXCEEDS_SIZE: FaultReason

Interrupt index exceeds IRT size.

Source

pub const IRTE_NOT_PRESENT: FaultReason

IRTE not present (P=0).

Source

pub const IRTE_ACCESS_ERROR: FaultReason

Error accessing IRTE (GPA read failure).

Source

pub const IRTE_RESERVED_FIELD: FaultReason

Reserved field set in present IRTE.

Source

pub const COMPAT_FORMAT_BLOCKED: FaultReason

Compatibility-format interrupt blocked.

Source

pub const SOURCE_ID_VERIFICATION_FAIL: FaultReason

Source-ID verification failure.

Trait Implementations§

Source§

impl Clone for FaultReason

Source§

fn clone(&self) -> FaultReason

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FaultReason

Source§

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

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

impl Hash for FaultReason

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Inspect for FaultReason

Source§

fn inspect(&self, req: Request<'_>)

Inspects the object.
Source§

impl Ord for FaultReason

Source§

fn cmp(&self, other: &FaultReason) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for FaultReason

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for FaultReason

Source§

fn partial_cmp(&self, other: &FaultReason) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for FaultReason

Source§

impl Eq for FaultReason

Source§

impl StructuralPartialEq for FaultReason

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more