pub enum VcpuError {
OutOfMemory,
Control(ControlError),
VmFail(u32),
AlreadyLaunched,
InvalidGuestState(GuestError),
InterruptNotDeliverable,
Translation(MmuError),
BadExit,
Svm(SvmVcpuError),
}Expand description
vCPU lifecycle errors.
Variants§
OutOfMemory
Frame allocation failed.
Control(ControlError)
Operation on the control block.
VmFail(u32)
Entry failure (VMfail): code read from the instruction field.
AlreadyLaunched
The guest is already launched and resumption is not permitted.
InvalidGuestState(GuestError)
The guest state fails the architectural pre-entry checks.
InterruptNotDeliverable
An interrupt is not deliverable through VM entry: RFLAGS.IF is clear,
or the guest is inside an interrupt shadow (STI / MOV SS).
Translation(MmuError)
The EPT could not be built.
BadExit
Unreadable exit state.
Svm(SvmVcpuError)
AMD-V backend error.
Trait Implementations§
impl Copy for VcpuError
impl Eq for VcpuError
Source§impl From<ControlError> for VcpuError
impl From<ControlError> for VcpuError
Source§fn from(value: ControlError) -> Self
fn from(value: ControlError) -> Self
Converts to this type from the input type.
Source§impl From<SvmVcpuError> for VcpuError
impl From<SvmVcpuError> for VcpuError
Source§fn from(value: SvmVcpuError) -> Self
fn from(value: SvmVcpuError) -> Self
Converts to this type from the input type.
Source§impl From<VcpuError> for SelftestError
impl From<VcpuError> for SelftestError
impl StructuralPartialEq for VcpuError
Auto Trait Implementations§
impl Forget for VcpuError
impl Freeze for VcpuError
impl Move for VcpuError
impl RefUnwindSafe for VcpuError
impl Send for VcpuError
impl Sync for VcpuError
impl Unpin for VcpuError
impl UnsafeUnpin for VcpuError
impl UnwindSafe for VcpuError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more