#[repr(C)]pub struct GuestTranslationAbi {
pub guest_base: u64,
pub page_index: usize,
pub perms: u8,
pub _padding: [u8; 7],
pub data: *mut u8,
}Expand description
Caches one guest-to-host translation to avoid a page search on common accesses.
Fields§
§guest_base: u64Identifies the guest page held in this cache entry.
page_index: usizeIdentifies the page in the ABI page array for dirty tracking.
perms: u8Copies the page permissions so a cache hit still checks access rights.
_padding: [u8; 7]Keeps data at the offset that the generated ABI expects.
data: *mut u8Points to the first host byte, or is null when this entry is empty.
Trait Implementations§
Source§impl Clone for GuestTranslationAbi
impl Clone for GuestTranslationAbi
Source§fn clone(&self) -> GuestTranslationAbi
fn clone(&self) -> GuestTranslationAbi
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GuestTranslationAbi
Auto Trait Implementations§
impl !Send for GuestTranslationAbi
impl !Sync for GuestTranslationAbi
impl Freeze for GuestTranslationAbi
impl RefUnwindSafe for GuestTranslationAbi
impl Unpin for GuestTranslationAbi
impl UnsafeUnpin for GuestTranslationAbi
impl UnwindSafe for GuestTranslationAbi
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