pub struct TranslateFlags {
pub validate_execute: bool,
pub validate_read: bool,
pub validate_write: bool,
pub privilege_check: TranslatePrivilegeCheck,
pub set_page_table_bits: bool,
}
Expand description
Flags to control the page table walk.
Fields§
§validate_execute: bool
Validate a VP in the current state can execute from this GVA.
validate_read: bool
Validate a VP in the current state can read from this GVA.
validate_write: bool
Validate a VP in the current state can write to this GVA.
privilege_check: TranslatePrivilegeCheck
The type of privilege check to perform.
set_page_table_bits: bool
Update the page table entries’ access and dirty bits as appropriate.
Implementations§
Source§impl TranslateFlags
impl TranslateFlags
Sourcepub fn from_hv_flags(flags: TranslateGvaControlFlagsArm64) -> Self
pub fn from_hv_flags(flags: TranslateGvaControlFlagsArm64) -> Self
Return flags based on the HvTranslateVirtualAddress
hypercall input
flags.
Note that not all flags are considered.
Trait Implementations§
Source§impl Clone for TranslateFlags
impl Clone for TranslateFlags
Source§fn clone(&self) -> TranslateFlags
fn clone(&self) -> TranslateFlags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TranslateFlags
impl RefUnwindSafe for TranslateFlags
impl Send for TranslateFlags
impl Sync for TranslateFlags
impl Unpin for TranslateFlags
impl UnwindSafe for TranslateFlags
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