pub struct MemoryRegion {
pub guest_base: GuestPhysAddr,
pub host_base: PhysAddr,
pub page_count: usize,
pub permissions: MemoryPermissions,
pub owner: PartitionId,
}Expand description
A legacy memory region descriptor (ADR-138 compatibility).
For new code, prefer region::OwnedRegion which includes tier metadata.
Fields§
§guest_base: GuestPhysAddrGuest physical base address (must be page-aligned).
host_base: PhysAddrHost physical base address (must be page-aligned).
page_count: usizeNumber of pages in this region.
permissions: MemoryPermissionsAccess permissions.
owner: PartitionIdThe partition that owns this region.
Trait Implementations§
Source§impl Clone for MemoryRegion
impl Clone for MemoryRegion
Source§fn clone(&self) -> MemoryRegion
fn clone(&self) -> MemoryRegion
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 moreimpl Copy for MemoryRegion
Auto Trait Implementations§
impl Freeze for MemoryRegion
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnsafeUnpin for MemoryRegion
impl UnwindSafe for MemoryRegion
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