pub struct ExtendedHypervisorConfigurationRegister(/* private fields */);Expand description
The layout of HCRX_EL2.
Implementations§
Source§impl ExtendedHypervisorConfigurationRegister
impl ExtendedHypervisorConfigurationRegister
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const SRMASKEN_MASK: u64
pub const SRMASKEN_MASK: u64
Unshifted bitmask of srmasken.
Sourcepub const SRMASKEN_SHIFT: usize = 26
pub const SRMASKEN_SHIFT: usize = 26
Bit shift (i.e., the low bit) of srmasken.
Sourcepub const PACMEN_MASK: u64
pub const PACMEN_MASK: u64
Unshifted bitmask of pacmen.
Sourcepub const PACMEN_SHIFT: usize = 24
pub const PACMEN_SHIFT: usize = 24
Bit shift (i.e., the low bit) of pacmen.
Sourcepub const ENFPM_MASK: u64
pub const ENFPM_MASK: u64
Unshifted bitmask of enfpm.
Sourcepub const ENFPM_SHIFT: usize = 23
pub const ENFPM_SHIFT: usize = 23
Bit shift (i.e., the low bit) of enfpm.
Sourcepub const GCSEN_MASK: u64
pub const GCSEN_MASK: u64
Unshifted bitmask of gcsen.
Sourcepub const GCSEN_SHIFT: usize = 22
pub const GCSEN_SHIFT: usize = 22
Bit shift (i.e., the low bit) of gcsen.
Sourcepub const ENIDCP128_MASK: u64
pub const ENIDCP128_MASK: u64
Unshifted bitmask of enidcp128.
Sourcepub const ENIDCP128_SHIFT: usize = 21
pub const ENIDCP128_SHIFT: usize = 21
Bit shift (i.e., the low bit) of enidcp128.
Sourcepub const ENSDERR_MASK: u64
pub const ENSDERR_MASK: u64
Unshifted bitmask of ensderr.
Sourcepub const ENSDERR_SHIFT: usize = 20
pub const ENSDERR_SHIFT: usize = 20
Bit shift (i.e., the low bit) of ensderr.
Sourcepub const TMEA_SHIFT: usize = 19
pub const TMEA_SHIFT: usize = 19
Bit shift (i.e., the low bit) of tmea.
Sourcepub const ENSNERR_MASK: u64
pub const ENSNERR_MASK: u64
Unshifted bitmask of ensnerr.
Sourcepub const ENSNERR_SHIFT: usize = 18
pub const ENSNERR_SHIFT: usize = 18
Bit shift (i.e., the low bit) of ensnerr.
Sourcepub const D128EN_MASK: u64
pub const D128EN_MASK: u64
Unshifted bitmask of d128en.
Sourcepub const D128EN_SHIFT: usize = 17
pub const D128EN_SHIFT: usize = 17
Bit shift (i.e., the low bit) of d128en.
Sourcepub const PTTWI_MASK: u64
pub const PTTWI_MASK: u64
Unshifted bitmask of pttwi.
Sourcepub const PTTWI_SHIFT: usize = 16
pub const PTTWI_SHIFT: usize = 16
Bit shift (i.e., the low bit) of pttwi.
Sourcepub const SCTLR2EN_MASK: u64
pub const SCTLR2EN_MASK: u64
Unshifted bitmask of sctlr2en.
Sourcepub const SCTLR2EN_SHIFT: usize = 15
pub const SCTLR2EN_SHIFT: usize = 15
Bit shift (i.e., the low bit) of sctlr2en.
Sourcepub const TCR2EN_MASK: u64
pub const TCR2EN_MASK: u64
Unshifted bitmask of tcr2en.
Sourcepub const TCR2EN_SHIFT: usize = 14
pub const TCR2EN_SHIFT: usize = 14
Bit shift (i.e., the low bit) of tcr2en.
Sourcepub const MSCEN_MASK: u64
pub const MSCEN_MASK: u64
Unshifted bitmask of mscen.
Sourcepub const MSCEN_SHIFT: usize = 11
pub const MSCEN_SHIFT: usize = 11
Bit shift (i.e., the low bit) of mscen.
Sourcepub const MCE2_SHIFT: usize = 10
pub const MCE2_SHIFT: usize = 10
Bit shift (i.e., the low bit) of mce2.
Sourcepub const CMOW_SHIFT: usize = 9
pub const CMOW_SHIFT: usize = 9
Bit shift (i.e., the low bit) of cmow.
Sourcepub const VFNMI_MASK: u64
pub const VFNMI_MASK: u64
Unshifted bitmask of vfnmi.
Sourcepub const VFNMI_SHIFT: usize = 8
pub const VFNMI_SHIFT: usize = 8
Bit shift (i.e., the low bit) of vfnmi.
Sourcepub const VINMI_MASK: u64
pub const VINMI_MASK: u64
Unshifted bitmask of vinmi.
Sourcepub const VINMI_SHIFT: usize = 7
pub const VINMI_SHIFT: usize = 7
Bit shift (i.e., the low bit) of vinmi.
Sourcepub const TALLINT_MASK: u64
pub const TALLINT_MASK: u64
Unshifted bitmask of tallint.
Sourcepub const TALLINT_SHIFT: usize = 6
pub const TALLINT_SHIFT: usize = 6
Bit shift (i.e., the low bit) of tallint.
Sourcepub const SMPME_MASK: u64
pub const SMPME_MASK: u64
Unshifted bitmask of smpme.
Sourcepub const SMPME_SHIFT: usize = 5
pub const SMPME_SHIFT: usize = 5
Bit shift (i.e., the low bit) of smpme.
Sourcepub const FGTNXS_MASK: u64
pub const FGTNXS_MASK: u64
Unshifted bitmask of fgtnxs.
Sourcepub const FGTNXS_SHIFT: usize = 4
pub const FGTNXS_SHIFT: usize = 4
Bit shift (i.e., the low bit) of fgtnxs.
Sourcepub const FNXS_SHIFT: usize = 3
pub const FNXS_SHIFT: usize = 3
Bit shift (i.e., the low bit) of fnxs.
Sourcepub const ENASR_MASK: u64
pub const ENASR_MASK: u64
Unshifted bitmask of enasr.
Sourcepub const ENASR_SHIFT: usize = 2
pub const ENASR_SHIFT: usize = 2
Bit shift (i.e., the low bit) of enasr.
Sourcepub const ENALS_MASK: u64
pub const ENALS_MASK: u64
Unshifted bitmask of enals.
Sourcepub const ENALS_SHIFT: usize = 1
pub const ENALS_SHIFT: usize = 1
Bit shift (i.e., the low bit) of enals.
Sourcepub const ENAS0_MASK: u64
pub const ENAS0_MASK: u64
Unshifted bitmask of enas0.
Sourcepub const ENAS0_SHIFT: usize = 0
pub const ENAS0_SHIFT: usize = 0
Bit shift (i.e., the low bit) of enas0.
Sourcepub const FIELDS: [FieldMetadata<u64>; 24]
pub const FIELDS: [FieldMetadata<u64>; 24]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn set_srmasken(&mut self, value: bool) -> &mut Self
pub const fn set_srmasken(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister26.
Sourcepub const fn set_pacmen(&mut self, value: bool) -> &mut Self
pub const fn set_pacmen(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister24.
Sourcepub const fn set_enfpm(&mut self, value: bool) -> &mut Self
pub const fn set_enfpm(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister23.
Sourcepub const fn set_gcsen(&mut self, value: bool) -> &mut Self
pub const fn set_gcsen(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister22.
Sourcepub const fn set_enidcp128(&mut self, value: bool) -> &mut Self
pub const fn set_enidcp128(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister21.
Sourcepub const fn set_ensderr(&mut self, value: bool) -> &mut Self
pub const fn set_ensderr(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister20.
Sourcepub const fn set_tmea(&mut self, value: bool) -> &mut Self
pub const fn set_tmea(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister19.
Sourcepub const fn set_ensnerr(&mut self, value: bool) -> &mut Self
pub const fn set_ensnerr(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister18.
Sourcepub const fn set_d128en(&mut self, value: bool) -> &mut Self
pub const fn set_d128en(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister17.
Sourcepub const fn set_pttwi(&mut self, value: bool) -> &mut Self
pub const fn set_pttwi(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister16.
Sourcepub const fn set_sctlr2en(&mut self, value: bool) -> &mut Self
pub const fn set_sctlr2en(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister15.
Sourcepub const fn set_tcr2en(&mut self, value: bool) -> &mut Self
pub const fn set_tcr2en(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister14.
Sourcepub const fn set_mscen(&mut self, value: bool) -> &mut Self
pub const fn set_mscen(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister11.
Sourcepub const fn set_mce2(&mut self, value: bool) -> &mut Self
pub const fn set_mce2(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister10.
Sourcepub const fn set_cmow(&mut self, value: bool) -> &mut Self
pub const fn set_cmow(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister9.
Sourcepub const fn set_vfnmi(&mut self, value: bool) -> &mut Self
pub const fn set_vfnmi(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister8.
Sourcepub const fn set_vinmi(&mut self, value: bool) -> &mut Self
pub const fn set_vinmi(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister7.
Sourcepub const fn set_tallint(&mut self, value: bool) -> &mut Self
pub const fn set_tallint(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister6.
Sourcepub const fn set_smpme(&mut self, value: bool) -> &mut Self
pub const fn set_smpme(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister5.
Sourcepub const fn set_fgtnxs(&mut self, value: bool) -> &mut Self
pub const fn set_fgtnxs(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister4.
Sourcepub const fn set_fnxs(&mut self, value: bool) -> &mut Self
pub const fn set_fnxs(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister3.
Sourcepub const fn set_enasr(&mut self, value: bool) -> &mut Self
pub const fn set_enasr(&mut self, value: bool) -> &mut Self
Sets the value of ExtendedHypervisorConfigurationRegister2.
Trait Implementations§
Source§impl Binary for ExtendedHypervisorConfigurationRegister
impl Binary for ExtendedHypervisorConfigurationRegister
Source§impl Clone for ExtendedHypervisorConfigurationRegister
impl Clone for ExtendedHypervisorConfigurationRegister
Source§fn clone(&self) -> ExtendedHypervisorConfigurationRegister
fn clone(&self) -> ExtendedHypervisorConfigurationRegister
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExtendedHypervisorConfigurationRegister
Source§impl Debug for ExtendedHypervisorConfigurationRegister
impl Debug for ExtendedHypervisorConfigurationRegister
Source§impl Default for ExtendedHypervisorConfigurationRegister
impl Default for ExtendedHypervisorConfigurationRegister
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for ExtendedHypervisorConfigurationRegister
Source§impl From<ExtendedHypervisorConfigurationRegister> for u64
impl From<ExtendedHypervisorConfigurationRegister> for u64
Source§fn from(value: ExtendedHypervisorConfigurationRegister) -> Self
fn from(value: ExtendedHypervisorConfigurationRegister) -> Self
Source§impl From<u64> for ExtendedHypervisorConfigurationRegister
impl From<u64> for ExtendedHypervisorConfigurationRegister
Source§impl IntoIterator for ExtendedHypervisorConfigurationRegister
impl IntoIterator for ExtendedHypervisorConfigurationRegister
Source§impl<'a> IntoIterator for &'a ExtendedHypervisorConfigurationRegister
impl<'a> IntoIterator for &'a ExtendedHypervisorConfigurationRegister
Source§impl LowerHex for ExtendedHypervisorConfigurationRegister
impl LowerHex for ExtendedHypervisorConfigurationRegister
Source§impl Octal for ExtendedHypervisorConfigurationRegister
impl Octal for ExtendedHypervisorConfigurationRegister
Source§impl PartialEq for ExtendedHypervisorConfigurationRegister
impl PartialEq for ExtendedHypervisorConfigurationRegister
impl StructuralPartialEq for ExtendedHypervisorConfigurationRegister
Auto Trait Implementations§
impl Freeze for ExtendedHypervisorConfigurationRegister
impl RefUnwindSafe for ExtendedHypervisorConfigurationRegister
impl Send for ExtendedHypervisorConfigurationRegister
impl Sync for ExtendedHypervisorConfigurationRegister
impl Unpin for ExtendedHypervisorConfigurationRegister
impl UnsafeUnpin for ExtendedHypervisorConfigurationRegister
impl UnwindSafe for ExtendedHypervisorConfigurationRegister
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)