GuestMemoryMmap

Type Alias GuestMemoryMmap 

Source
pub type GuestMemoryMmap = GuestRegionCollection<GuestRegionMmapExt>;
Expand description

Type of GuestMemoryMmap.

Aliased Type§

pub struct GuestMemoryMmap { /* private fields */ }

Trait Implementations§

Source§

impl GuestMemoryExtension for GuestMemoryMmap

Source§

fn describe(&self) -> GuestMemoryState

Describes GuestMemoryMmap through a GuestMemoryState struct.

Source§

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>

Dumps all contents of GuestMemoryMmap to a writer.

Source§

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)

Resets all the memory region bitmaps

Source§

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>
where F: FnMut(&GuestRegionMmapExt, MemoryRegionAddress, usize) -> Result<(), GuestMemoryError>,

Apply a function to each region in a memory range
Source§

fn discard_range( &self, addr: GuestAddress, range_len: usize, ) -> Result<(), GuestMemoryError>

Discards a memory range, freeing up memory pages