pub struct OwnedRegion {
pub id: OwnedRegionId,
pub owner: PartitionId,
pub guest_base: GuestPhysAddr,
pub host_base: PhysAddr,
pub page_count: u32,
pub tier: Tier,
pub permissions: MemoryPermissions,
/* private fields */
}Expand description
An owned memory region entry in the region table.
Fields§
§id: OwnedRegionIdUnique region identifier.
owner: PartitionIdOwning partition.
guest_base: GuestPhysAddrGuest physical base address (page-aligned).
host_base: PhysAddrHost physical base address (page-aligned).
page_count: u32Number of pages in this region.
tier: TierCurrent memory tier.
permissions: MemoryPermissionsAccess permissions.
Implementations§
Source§impl OwnedRegion
impl OwnedRegion
Sourcepub const fn size_bytes(&self) -> u64
pub const fn size_bytes(&self) -> u64
Return the size of this region in bytes.
Sourcepub const fn contains_guest(&self, addr: GuestPhysAddr) -> bool
pub const fn contains_guest(&self, addr: GuestPhysAddr) -> bool
Check if a guest physical address falls within this region.
Trait Implementations§
Source§impl Clone for OwnedRegion
impl Clone for OwnedRegion
Source§fn clone(&self) -> OwnedRegion
fn clone(&self) -> OwnedRegion
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 OwnedRegion
Source§impl Debug for OwnedRegion
impl Debug for OwnedRegion
impl Eq for OwnedRegion
Source§impl PartialEq for OwnedRegion
impl PartialEq for OwnedRegion
impl StructuralPartialEq for OwnedRegion
Auto Trait Implementations§
impl Freeze for OwnedRegion
impl RefUnwindSafe for OwnedRegion
impl Send for OwnedRegion
impl Sync for OwnedRegion
impl Unpin for OwnedRegion
impl UnsafeUnpin for OwnedRegion
impl UnwindSafe for OwnedRegion
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