#[repr(C)]pub struct GuestMemoryAbi {
pub pages: *const GuestPageAbi,
pub page_count: usize,
pub page_size: usize,
pub translations: [GuestTranslationAbi; 16],
pub dirty_pages: *mut usize,
pub dirty_count: usize,
pub dirty_bitmap: *mut u64,
}Expand description
Exposes only stable pointers and lengths because generated code cannot use Rust containers.
Fields§
§pages: *const GuestPageAbiPoints to the sorted page descriptions used by generated binary search.
page_count: usizeLimits generated searches to valid entries in pages.
page_size: usizeGives the page size that defines guest page offsets.
translations: [GuestTranslationAbi; 16]Keeps recent translations so common accesses do not need binary search.
dirty_pages: *mut usizePoints to page indices changed since the current snapshot baseline.
dirty_count: usizeGives the valid prefix length of dirty_pages.
dirty_bitmap: *mut u64Points to one bit per page so each dirty page enters the list once.
Auto Trait Implementations§
impl !Send for GuestMemoryAbi
impl !Sync for GuestMemoryAbi
impl Freeze for GuestMemoryAbi
impl RefUnwindSafe for GuestMemoryAbi
impl Unpin for GuestMemoryAbi
impl UnsafeUnpin for GuestMemoryAbi
impl UnwindSafe for GuestMemoryAbi
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