Expand description
This module holds abstractions that enable tracking the areas dirtied by writes of a specified
length to a given offset. In particular, this is used to track write accesses within a
GuestMemoryRegion object, and the resulting bitmaps can then be aggregated to build the
global view for an entire GuestMemoryBackend object.
Structs§
- Atomic
Bitmap backend-bitmap AtomicBitmapimplements a simple bit map on the page level with test and set operations. It is page-size aware, so it converts addresses to page numbers before setting or clearing the bits.
Traits§
- Bitmap
- Common bitmap operations. Using Higher-Rank Trait Bounds (HRTBs) to effectively define
an associated type that has a lifetime parameter, without tagging the
Bitmaptrait with a lifetime as well. - Bitmap
Slice - Trait used to represent that a
BitmapSliceis aBitmapitself, but also satisfies the restriction that slices created from it have the same type asSelf. - NewBitmap
- A
Bitmapthat can be created starting from an initial size. - With
Bitmap Slice - Trait implemented by types that support creating
BitmapSliceobjects.
Type Aliases§
- ArcSlice
backend-bitmap - A
BitmapSliceimplementation that uses anArchandle to aBitmapobject. - BS
- Helper type alias for referring to the
BitmapSliceconcrete type associated with an objectB: WithBitmapSlice<'a>. - MS
- Helper type alias for referring to the
BitmapSliceconcrete type associated with the memory regions of an objectM: GuestMemoryBackend. - RefSlice
backend-bitmap - A
BitmapSliceimplementation that wraps a reference to aBitmapobject.