pub enum VmError {
BadSize {
requested: usize,
unit: usize,
},
SyscallError {
op: &'static str,
err: Errno,
},
InvalidMapping {
base: GuestAddress,
size: u64,
},
}Variants§
BadSize
the requested VM’s memory size was not an even number of pages.
SyscallError
one of the several syscalls in operating a VM failed.
this deserves better documentation, but i’m not aware of documentation for KVM ioctl failure modes.
InvalidMapping
base and size are not valid for mapping; either because of over/underflow, or overlaps
with an existing mapping.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VmError
impl RefUnwindSafe for VmError
impl Send for VmError
impl Sync for VmError
impl Unpin for VmError
impl UnsafeUnpin for VmError
impl UnwindSafe for VmError
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