#[repr(C)]pub struct TlbEntry {
pub tag: u64,
pub guest_to_host_offset: u64,
}Expand description
One cached translation.
#[repr(C)] and 16 bytes wide on purpose: compiled code computes an entry’s
address arithmetically from the guest address, so both the field order and
the size are part of the interface.
Fields§
§tag: u64The guest page base this entry translates, or INVALID_TAG.
guest_to_host_offset: u64Added to a guest address to get the host address of that byte.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlbEntry
impl RefUnwindSafe for TlbEntry
impl Send for TlbEntry
impl Sync for TlbEntry
impl Unpin for TlbEntry
impl UnsafeUnpin for TlbEntry
impl UnwindSafe for TlbEntry
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