pub enum MemoryBuildError {
RamTooLarge(u64),
AllocationFailed(Error),
VaMapper(VaMapperError),
AliasMapWontFit,
InvalidRamForX86,
PrivateMemoryWithLegacy,
PrivateMemoryWithExistingBacking,
PrivateRamAlloc(Error, MemoryRange),
ThpWithoutPrivateMemory,
ThpUnsupportedPlatform,
}Expand description
Errors creating a GuestMemoryManager.
Variants§
RamTooLarge(u64)
RAM too large.
AllocationFailed(Error)
Couldn’t allocate RAM.
VaMapper(VaMapperError)
Couldn’t allocate VA mapper.
AliasMapWontFit
Memory layout incompatible with VTL0 alias map.
InvalidRamForX86
Memory layout incompatible with x86 legacy support.
PrivateMemoryWithLegacy
Private memory is incompatible with x86 legacy support.
PrivateMemoryWithExistingBacking
Private memory is incompatible with existing memory backing.
PrivateRamAlloc(Error, MemoryRange)
Failed to allocate private RAM range.
ThpWithoutPrivateMemory
THP requires private memory mode.
ThpUnsupportedPlatform
THP is only supported on Linux.
Trait Implementations§
Source§impl Debug for MemoryBuildError
impl Debug for MemoryBuildError
Source§impl Display for MemoryBuildError
impl Display for MemoryBuildError
Source§impl Error for MemoryBuildError
impl Error for MemoryBuildError
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()
Auto Trait Implementations§
impl Freeze for MemoryBuildError
impl !RefUnwindSafe for MemoryBuildError
impl Send for MemoryBuildError
impl Sync for MemoryBuildError
impl Unpin for MemoryBuildError
impl !UnwindSafe for MemoryBuildError
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