pub enum ScalableValidationError {
NotPresent,
ReservedBits {
word: usize,
bits: u64,
},
UnsupportedFields {
word: usize,
bits: u64,
},
UnsupportedTranslationType(PasidTranslationType),
UnsupportedAddressWidth(AddressWidth),
PasidOutOfRange {
pasid: u32,
limit: u32,
},
InvalidDirectorySize(u8),
InvalidHostAddressWidth(u8),
}Expand description
Validation failure in a scalable translation structure.
Variants§
NotPresent
All fields except FPD (if any) are ignored.
ReservedBits
A word has nonzero architecturally reserved bits.
UnsupportedFields
Optional fields are reserved-zero in the supported profile.
UnsupportedTranslationType(PasidTranslationType)
PGTT is unknown or outside the second-stage-only profile.
UnsupportedAddressWidth(AddressWidth)
AW does not select a supported second-stage walk.
PasidOutOfRange
PASID is outside the range selected by PDTS.
InvalidDirectorySize(u8)
PDTS must fit in its architectural three-bit field.
InvalidHostAddressWidth(u8)
A pointer’s host address width must be between 12 and 64 bits.
Trait Implementations§
Source§impl Clone for ScalableValidationError
impl Clone for ScalableValidationError
Source§fn clone(&self) -> ScalableValidationError
fn clone(&self) -> ScalableValidationError
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 ScalableValidationError
impl Debug for ScalableValidationError
Source§impl Display for ScalableValidationError
impl Display for ScalableValidationError
Source§impl Error for ScalableValidationError
impl Error for ScalableValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for ScalableValidationError
impl PartialEq for ScalableValidationError
impl Copy for ScalableValidationError
impl Eq for ScalableValidationError
impl StructuralPartialEq for ScalableValidationError
Auto Trait Implementations§
impl Freeze for ScalableValidationError
impl RefUnwindSafe for ScalableValidationError
impl Send for ScalableValidationError
impl Sync for ScalableValidationError
impl Unpin for ScalableValidationError
impl UnsafeUnpin for ScalableValidationError
impl UnwindSafe for ScalableValidationError
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