pub enum MemoryAllocationMode {
Host,
Vtl2 {
memory_size: Option<u64>,
mmio_size: Option<u64>,
},
}
Expand description
The memory allocation mode provided by the host. This reports how the bootloader decided to provide memory for the kernel.
Variants§
Host
Use the host provided memory topology, and use VTL2_PROTECTABLE entries
as VTL2 ram. This is the default if no
openhcl/memory-allocation-property
mode is provided by the host.
Vtl2
Allow VTL2 to select its own ranges from the address space to use for memory, with a size provided by the host.
Trait Implementations§
Source§impl Clone for MemoryAllocationMode
impl Clone for MemoryAllocationMode
Source§fn clone(&self) -> MemoryAllocationMode
fn clone(&self) -> MemoryAllocationMode
Returns a copy 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 MemoryAllocationMode
impl Debug for MemoryAllocationMode
Source§impl Inspect for MemoryAllocationMode
impl Inspect for MemoryAllocationMode
Source§impl PartialEq for MemoryAllocationMode
impl PartialEq for MemoryAllocationMode
impl Copy for MemoryAllocationMode
impl Eq for MemoryAllocationMode
impl StructuralPartialEq for MemoryAllocationMode
Auto Trait Implementations§
impl Freeze for MemoryAllocationMode
impl RefUnwindSafe for MemoryAllocationMode
impl Send for MemoryAllocationMode
impl Sync for MemoryAllocationMode
impl Unpin for MemoryAllocationMode
impl UnwindSafe for MemoryAllocationMode
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