pub type GuestMemoryMmap = GuestRegionCollection<GuestRegionMmapExt>;Expand description
Type of GuestMemoryMmap.
Aliased Type§
pub struct GuestMemoryMmap { /* private fields */ }Trait Implementations§
Source§impl GuestMemoryExtension for GuestMemoryMmap
impl GuestMemoryExtension for GuestMemoryMmap
Source§fn describe(&self) -> GuestMemoryState
fn describe(&self) -> GuestMemoryState
Describes GuestMemoryMmap through a GuestMemoryState struct.
Source§fn mark_dirty(&self, addr: GuestAddress, len: usize)
fn mark_dirty(&self, addr: GuestAddress, len: usize)
Mark memory range as dirty
Source§fn dump<T: WriteVolatile + Seek>(
&self,
writer: &mut T,
) -> Result<(), MemoryError>
fn dump<T: WriteVolatile + Seek>( &self, writer: &mut T, ) -> Result<(), MemoryError>
Dumps all contents of GuestMemoryMmap to a writer.
Source§fn dump_dirty<T: WriteVolatile + Seek>(
&self,
writer: &mut T,
dirty_bitmap: &DirtyBitmap,
) -> Result<(), MemoryError>
fn dump_dirty<T: WriteVolatile + Seek>( &self, writer: &mut T, dirty_bitmap: &DirtyBitmap, ) -> Result<(), MemoryError>
Dumps all pages of GuestMemoryMmap present in dirty_bitmap to a writer.
Source§fn reset_dirty(&self)
fn reset_dirty(&self)
Resets all the memory region bitmaps
Source§fn store_dirty_bitmap(&self, dirty_bitmap: &DirtyBitmap, page_size: usize)
fn store_dirty_bitmap(&self, dirty_bitmap: &DirtyBitmap, page_size: usize)
Stores the dirty bitmap inside into the internal bitmap
Source§fn try_for_each_region_in_range<F>(
&self,
addr: GuestAddress,
range_len: usize,
f: F,
) -> Result<(), GuestMemoryError>
fn try_for_each_region_in_range<F>( &self, addr: GuestAddress, range_len: usize, f: F, ) -> Result<(), GuestMemoryError>
Apply a function to each region in a memory range
Source§fn discard_range(
&self,
addr: GuestAddress,
range_len: usize,
) -> Result<(), GuestMemoryError>
fn discard_range( &self, addr: GuestAddress, range_len: usize, ) -> Result<(), GuestMemoryError>
Discards a memory range, freeing up memory pages