pub struct VMMemoryRegion {
pub gpa: GuestPhysAddr,
pub hva: HostVirtAddr,
pub layout: Layout,
pub needs_dealloc: bool,
}Expand description
Represents a memory region in a virtual machine.
Fields§
§gpa: GuestPhysAddrGuest physical address.
hva: HostVirtAddrHost virtual address.
layout: LayoutMemory layout of the region.
needs_dealloc: boolWhether this region was allocated by the allocator and needs to be deallocated
Implementations§
Source§impl VMMemoryRegion
impl VMMemoryRegion
Sourcepub fn host_paddr(&self) -> HostPhysAddr
pub fn host_paddr(&self) -> HostPhysAddr
Returns the host physical address backing this guest memory region.
Sourcepub fn is_identical(&self) -> bool
pub fn is_identical(&self) -> bool
Returns true if the guest physical address is identical to the host physical address.
Trait Implementations§
Source§impl Clone for VMMemoryRegion
impl Clone for VMMemoryRegion
Source§fn clone(&self) -> VMMemoryRegion
fn clone(&self) -> VMMemoryRegion
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for VMMemoryRegion
impl RefUnwindSafe for VMMemoryRegion
impl Send for VMMemoryRegion
impl Sync for VMMemoryRegion
impl Unpin for VMMemoryRegion
impl UnsafeUnpin for VMMemoryRegion
impl UnwindSafe for VMMemoryRegion
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