Crate guestmem

Source
Expand description

Interfaces to read and write guest memory.

Modules§

ranges
Types representing contiguous and discontiguous ranges of guest memory.

Structs§

AlignedHeapMemory
A page-aligned heap allocation for use with GuestMemory.
BitmapInfo
Returned by GuestMemoryAccess::access_bitmap.
GuestMemory
A wrapper around a GuestMemoryAccess that provides methods for safely reading and writing guest memory.
GuestMemoryBackingError
A memory access error returned by a GuestMemoryAccess trait method.
GuestMemoryError
A memory access error returned by one of the GuestMemory methods.
InvalidGpn
Limit
LockedPages
LockedRangeImpl

Enums§

AccessError
MultiRegionError
PageFaultAction
The action to take after GuestMemoryAccess::page_fault returns to continue the operation.

Constants§

PAGE_SIZE

Traits§

DoorbellRegistration
Doorbell provides a mechanism to register for notifications on writes to specific addresses in guest memory.
GuestMemoryAccess
A trait for a guest memory backing.
LinearGuestMemory
A trait for a guest memory backing that is fully available via a virtual address mapping, as opposed to the fallback functions such as GuestMemoryAccess::read_fallback.
LockedRange
Represents a range of locked guest pages as an ordered list of the VA sub-ranges to which the guest pages are mapped. The range may only partially span the first and last page and must fully span all intermediate pages.
MapRom
Trait to map a ROM at one or more locations in guest memory.
MappableGuestMemory
Trait implemented to allow mapping and unmapping a region of memory at a particular guest address.
MappedMemoryRegion
Trait implemented for a region of memory that can have memory mapped into it.
MemoryMapper
Trait implemented to allow the creation of memory regions.
MemoryRead
MemoryWrite
UnmapRom
Trait to unmap a ROM from guest memory.

Type Aliases§

Page