pub struct TranslateGvaControlFlagsArm64(/* private fields */);
Implementations§
Source§impl TranslateGvaControlFlagsArm64
impl TranslateGvaControlFlagsArm64
Sourcepub const fn validate_read(&self) -> bool
pub const fn validate_read(&self) -> bool
Request data read access
Bits: 0..1
Sourcepub const fn with_validate_read(self, value: bool) -> Self
pub const fn with_validate_read(self, value: bool) -> Self
Request data read access
Bits: 0..1
Sourcepub fn set_validate_read(&mut self, value: bool)
pub fn set_validate_read(&mut self, value: bool)
Request data read access
Bits: 0..1
Sourcepub const fn validate_write(&self) -> bool
pub const fn validate_write(&self) -> bool
Request data write access
Bits: 1..2
Sourcepub const fn with_validate_write(self, value: bool) -> Self
pub const fn with_validate_write(self, value: bool) -> Self
Request data write access
Bits: 1..2
Sourcepub fn set_validate_write(&mut self, value: bool)
pub fn set_validate_write(&mut self, value: bool)
Request data write access
Bits: 1..2
Sourcepub const fn validate_execute(&self) -> bool
pub const fn validate_execute(&self) -> bool
Request instruction fetch access.
Bits: 2..3
Sourcepub const fn with_validate_execute(self, value: bool) -> Self
pub const fn with_validate_execute(self, value: bool) -> Self
Request instruction fetch access.
Bits: 2..3
Sourcepub fn set_validate_execute(&mut self, value: bool)
pub fn set_validate_execute(&mut self, value: bool)
Request instruction fetch access.
Bits: 2..3
Sourcepub const fn set_page_table_bits(&self) -> bool
pub const fn set_page_table_bits(&self) -> bool
Set the appropriate page table bits (i.e. access/dirty bit)
Bits: 4..5
Sourcepub const fn with_set_page_table_bits(self, value: bool) -> Self
pub const fn with_set_page_table_bits(self, value: bool) -> Self
Set the appropriate page table bits (i.e. access/dirty bit)
Bits: 4..5
Sourcepub fn set_set_page_table_bits(&mut self, value: bool)
pub fn set_set_page_table_bits(&mut self, value: bool)
Set the appropriate page table bits (i.e. access/dirty bit)
Bits: 4..5
Sourcepub const fn tlb_flush_inhibit(&self) -> bool
pub const fn tlb_flush_inhibit(&self) -> bool
Lock the TLB
Bits: 5..6
Sourcepub const fn with_tlb_flush_inhibit(self, value: bool) -> Self
pub const fn with_tlb_flush_inhibit(self, value: bool) -> Self
Lock the TLB
Bits: 5..6
Sourcepub fn set_tlb_flush_inhibit(&mut self, value: bool)
pub fn set_tlb_flush_inhibit(&mut self, value: bool)
Lock the TLB
Bits: 5..6
Sourcepub const fn supervisor_access(&self) -> bool
pub const fn supervisor_access(&self) -> bool
Treat the access as a supervisor mode access irrespective of current mode.
Bits: 6..7
Sourcepub const fn with_supervisor_access(self, value: bool) -> Self
pub const fn with_supervisor_access(self, value: bool) -> Self
Treat the access as a supervisor mode access irrespective of current mode.
Bits: 6..7
Sourcepub fn set_supervisor_access(&mut self, value: bool)
pub fn set_supervisor_access(&mut self, value: bool)
Treat the access as a supervisor mode access irrespective of current mode.
Bits: 6..7
Sourcepub const fn user_access(&self) -> bool
pub const fn user_access(&self) -> bool
Treat the access as a user mode access irrespective of current mode.
Bits: 7..8
Sourcepub const fn with_user_access(self, value: bool) -> Self
pub const fn with_user_access(self, value: bool) -> Self
Treat the access as a user mode access irrespective of current mode.
Bits: 7..8
Sourcepub fn set_user_access(&mut self, value: bool)
pub fn set_user_access(&mut self, value: bool)
Treat the access as a user mode access irrespective of current mode.
Bits: 7..8
Sourcepub const fn pan_set(&self) -> bool
pub const fn pan_set(&self) -> bool
Restrict supervisor data access to user mode addresses irrespective of current PSTATE.PAN i.e. the behavior when PSTATE.PAN=1.
Bits: 8..9
Sourcepub const fn with_pan_set(self, value: bool) -> Self
pub const fn with_pan_set(self, value: bool) -> Self
Restrict supervisor data access to user mode addresses irrespective of current PSTATE.PAN i.e. the behavior when PSTATE.PAN=1.
Bits: 8..9
Sourcepub fn set_pan_set(&mut self, value: bool)
pub fn set_pan_set(&mut self, value: bool)
Restrict supervisor data access to user mode addresses irrespective of current PSTATE.PAN i.e. the behavior when PSTATE.PAN=1.
Bits: 8..9
Sourcepub const fn pan_clear(&self) -> bool
pub const fn pan_clear(&self) -> bool
Don’t restrict supervisor data access to user mode addresses irrespective of current PSTATE.PAN i.e. the behavior when PSTATE.PAN=0.
Bits: 9..10
Sourcepub const fn with_pan_clear(self, value: bool) -> Self
pub const fn with_pan_clear(self, value: bool) -> Self
Don’t restrict supervisor data access to user mode addresses irrespective of current PSTATE.PAN i.e. the behavior when PSTATE.PAN=0.
Bits: 9..10
Sourcepub fn set_pan_clear(&mut self, value: bool)
pub fn set_pan_clear(&mut self, value: bool)
Don’t restrict supervisor data access to user mode addresses irrespective of current PSTATE.PAN i.e. the behavior when PSTATE.PAN=0.
Bits: 9..10
Source§impl TranslateGvaControlFlagsArm64
impl TranslateGvaControlFlagsArm64
pub fn input_vtl(&self) -> HvInputVtl
pub fn with_input_vtl(self, input_vtl: HvInputVtl) -> Self
pub fn set_input_vtl(&mut self, input_vtl: HvInputVtl)
Trait Implementations§
Source§impl Clone for TranslateGvaControlFlagsArm64
impl Clone for TranslateGvaControlFlagsArm64
Source§fn clone(&self) -> TranslateGvaControlFlagsArm64
fn clone(&self) -> TranslateGvaControlFlagsArm64
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl From<TranslateGvaControlFlagsArm64> for u64
impl From<TranslateGvaControlFlagsArm64> for u64
Source§fn from(v: TranslateGvaControlFlagsArm64) -> u64
fn from(v: TranslateGvaControlFlagsArm64) -> u64
Source§impl From<u64> for TranslateGvaControlFlagsArm64
impl From<u64> for TranslateGvaControlFlagsArm64
Source§impl FromBytes for TranslateGvaControlFlagsArm64where
u64: FromBytes,
impl FromBytes for TranslateGvaControlFlagsArm64where
u64: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
Source§impl FromZeros for TranslateGvaControlFlagsArm64where
u64: FromZeros,
impl FromZeros for TranslateGvaControlFlagsArm64where
u64: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Box<Self>
from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Vec<Self>
from zeroed bytes. Read moreSource§impl IntoBytes for TranslateGvaControlFlagsArm64where
u64: IntoBytes,
impl IntoBytes for TranslateGvaControlFlagsArm64where
u64: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl KnownLayout for TranslateGvaControlFlagsArm64where
Self: Sized,
impl KnownLayout for TranslateGvaControlFlagsArm64where
Self: Sized,
Source§type PointerMetadata = ()
type PointerMetadata = ()
Self
. Read more