pub struct MemoryLayout {
pub gicd_base: u64,
pub gicr_base: u64,
pub pl011_base: u64,
pub virtio_mmio_base: u64,
pub virtio_mmio_stride: u64,
pub virtio_mmio_slots: u32,
pub dram_base: u64,
pub page_geometry: PageGeometry,
}Expand description
Frozen memory layout for a microvm.
Fields§
§gicd_base: u64GIC distributor base.
gicr_base: u64GIC redistributor window base.
pl011_base: u64PL011 UART base.
virtio_mmio_base: u64virtio-MMIO region base (slot 0).
virtio_mmio_stride: u64virtio-MMIO slot stride (4 KiB).
virtio_mmio_slots: u32Number of virtio-MMIO slots reserved.
dram_base: u64DRAM start.
page_geometry: PageGeometryPage geometry.
Trait Implementations§
Source§impl Clone for MemoryLayout
impl Clone for MemoryLayout
Source§fn clone(&self) -> MemoryLayout
fn clone(&self) -> MemoryLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryLayout
impl Debug for MemoryLayout
impl Copy for MemoryLayout
Auto Trait Implementations§
impl Freeze for MemoryLayout
impl RefUnwindSafe for MemoryLayout
impl Send for MemoryLayout
impl Sync for MemoryLayout
impl Unpin for MemoryLayout
impl UnsafeUnpin for MemoryLayout
impl UnwindSafe for MemoryLayout
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