pub struct MiscFeaturesMsr(/* private fields */);Expand description
Layout for IA32_MISC_ENABLE.
Implementations§
Source§impl MiscFeaturesMsr
impl MiscFeaturesMsr
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 IP_PREFETCH_DISABLE_MASK: u64
pub const IP_PREFETCH_DISABLE_MASK: u64
Unshifted bitmask of ip_prefetch_disable.
Sourcepub const IP_PREFETCH_DISABLE_SHIFT: usize = 39
pub const IP_PREFETCH_DISABLE_SHIFT: usize = 39
Bit shift (i.e., the low bit) of ip_prefetch_disable.
Sourcepub const IDA_DISABLE_MASK: u64
pub const IDA_DISABLE_MASK: u64
Unshifted bitmask of ida_disable.
Sourcepub const IDA_DISABLE_SHIFT: usize = 38
pub const IDA_DISABLE_SHIFT: usize = 38
Bit shift (i.e., the low bit) of ida_disable.
Sourcepub const DCU_PREFETCH_DISABLE_MASK: u64
pub const DCU_PREFETCH_DISABLE_MASK: u64
Unshifted bitmask of dcu_prefetch_disable.
Sourcepub const DCU_PREFETCH_DISABLE_SHIFT: usize = 37
pub const DCU_PREFETCH_DISABLE_SHIFT: usize = 37
Bit shift (i.e., the low bit) of dcu_prefetch_disable.
Sourcepub const XD_BIT_DISABLE_MASK: u64
pub const XD_BIT_DISABLE_MASK: u64
Unshifted bitmask of xd_bit_disable.
Sourcepub const XD_BIT_DISABLE_SHIFT: usize = 34
pub const XD_BIT_DISABLE_SHIFT: usize = 34
Bit shift (i.e., the low bit) of xd_bit_disable.
Sourcepub const XTPR_MESSAGE_DISABLE_MASK: u64
pub const XTPR_MESSAGE_DISABLE_MASK: u64
Unshifted bitmask of xtpr_message_disable.
Sourcepub const XTPR_MESSAGE_DISABLE_SHIFT: usize = 23
pub const XTPR_MESSAGE_DISABLE_SHIFT: usize = 23
Bit shift (i.e., the low bit) of xtpr_message_disable.
Sourcepub const LIMIT_CPUID_MAXVAL_MASK: u64
pub const LIMIT_CPUID_MAXVAL_MASK: u64
Unshifted bitmask of limit_cpuid_maxval.
Sourcepub const LIMIT_CPUID_MAXVAL_SHIFT: usize = 22
pub const LIMIT_CPUID_MAXVAL_SHIFT: usize = 22
Bit shift (i.e., the low bit) of limit_cpuid_maxval.
Sourcepub const EIST_SELECT_LOCK_MASK: u64
pub const EIST_SELECT_LOCK_MASK: u64
Unshifted bitmask of eist_select_lock.
Sourcepub const EIST_SELECT_LOCK_SHIFT: usize = 20
pub const EIST_SELECT_LOCK_SHIFT: usize = 20
Bit shift (i.e., the low bit) of eist_select_lock.
Sourcepub const ADJACENT_CACHE_LINE_PREFETCH_DISABLE_MASK: u64
pub const ADJACENT_CACHE_LINE_PREFETCH_DISABLE_MASK: u64
Unshifted bitmask of adjacent_cache_line_prefetch_disable.
Sourcepub const ADJACENT_CACHE_LINE_PREFETCH_DISABLE_SHIFT: usize = 19
pub const ADJACENT_CACHE_LINE_PREFETCH_DISABLE_SHIFT: usize = 19
Bit shift (i.e., the low bit) of adjacent_cache_line_prefetch_disable.
Sourcepub const MONITOR_FSM_MASK: u64
pub const MONITOR_FSM_MASK: u64
Unshifted bitmask of monitor_fsm.
Sourcepub const MONITOR_FSM_SHIFT: usize = 18
pub const MONITOR_FSM_SHIFT: usize = 18
Bit shift (i.e., the low bit) of monitor_fsm.
Sourcepub const EIST_SHIFT: usize = 16
pub const EIST_SHIFT: usize = 16
Bit shift (i.e., the low bit) of eist.
Sourcepub const PEBS_UNAVAILABLE_MASK: u64
pub const PEBS_UNAVAILABLE_MASK: u64
Unshifted bitmask of pebs_unavailable.
Sourcepub const PEBS_UNAVAILABLE_SHIFT: usize = 12
pub const PEBS_UNAVAILABLE_SHIFT: usize = 12
Bit shift (i.e., the low bit) of pebs_unavailable.
Sourcepub const BTS_UNAVAILABLE_MASK: u64
pub const BTS_UNAVAILABLE_MASK: u64
Unshifted bitmask of bts_unavailable.
Sourcepub const BTS_UNAVAILABLE_SHIFT: usize = 11
pub const BTS_UNAVAILABLE_SHIFT: usize = 11
Bit shift (i.e., the low bit) of bts_unavailable.
Sourcepub const FERR_MUX_MASK: u64
pub const FERR_MUX_MASK: u64
Unshifted bitmask of ferr_mux.
Sourcepub const FERR_MUX_SHIFT: usize = 10
pub const FERR_MUX_SHIFT: usize = 10
Bit shift (i.e., the low bit) of ferr_mux.
Sourcepub const HARDWARE_PREFETCH_DISABLE_MASK: u64
pub const HARDWARE_PREFETCH_DISABLE_MASK: u64
Unshifted bitmask of hardware_prefetch_disable.
Sourcepub const HARDWARE_PREFETCH_DISABLE_SHIFT: usize = 9
pub const HARDWARE_PREFETCH_DISABLE_SHIFT: usize = 9
Bit shift (i.e., the low bit) of hardware_prefetch_disable.
Sourcepub const PERF_MON_AVAILABLE_MASK: u64
pub const PERF_MON_AVAILABLE_MASK: u64
Unshifted bitmask of perf_mon_available.
Sourcepub const PERF_MON_AVAILABLE_SHIFT: usize = 7
pub const PERF_MON_AVAILABLE_SHIFT: usize = 7
Bit shift (i.e., the low bit) of perf_mon_available.
Sourcepub const AUTOMATIC_THERMAL_CONTROL_CIRCUIT_MASK: u64
pub const AUTOMATIC_THERMAL_CONTROL_CIRCUIT_MASK: u64
Unshifted bitmask of automatic_thermal_control_circuit.
Sourcepub const AUTOMATIC_THERMAL_CONTROL_CIRCUIT_SHIFT: usize = 3
pub const AUTOMATIC_THERMAL_CONTROL_CIRCUIT_SHIFT: usize = 3
Bit shift (i.e., the low bit) of automatic_thermal_control_circuit.
Sourcepub const FAST_STRINGS_MASK: u64
pub const FAST_STRINGS_MASK: u64
Unshifted bitmask of fast_strings.
Sourcepub const FAST_STRINGS_SHIFT: usize = 0
pub const FAST_STRINGS_SHIFT: usize = 0
Bit shift (i.e., the low bit) of fast_strings.
Sourcepub const FIELDS: [FieldMetadata<u64>; 18]
pub const FIELDS: [FieldMetadata<u64>; 18]
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 ip_prefetch_disable(&self) -> bool
pub const fn ip_prefetch_disable(&self) -> bool
The value of MiscFeaturesMsr39.
Sourcepub const fn set_ip_prefetch_disable(&mut self, value: bool) -> &mut Self
pub const fn set_ip_prefetch_disable(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr39.
Sourcepub const fn ida_disable(&self) -> bool
pub const fn ida_disable(&self) -> bool
The value of MiscFeaturesMsr38.
Sourcepub const fn set_ida_disable(&mut self, value: bool) -> &mut Self
pub const fn set_ida_disable(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr38.
Sourcepub const fn dcu_prefetch_disable(&self) -> bool
pub const fn dcu_prefetch_disable(&self) -> bool
The value of MiscFeaturesMsr37.
Sourcepub const fn set_dcu_prefetch_disable(&mut self, value: bool) -> &mut Self
pub const fn set_dcu_prefetch_disable(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr37.
Sourcepub const fn xd_bit_disable(&self) -> bool
pub const fn xd_bit_disable(&self) -> bool
The value of MiscFeaturesMsr34.
Sourcepub const fn set_xd_bit_disable(&mut self, value: bool) -> &mut Self
pub const fn set_xd_bit_disable(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr34.
Sourcepub const fn xtpr_message_disable(&self) -> bool
pub const fn xtpr_message_disable(&self) -> bool
The value of MiscFeaturesMsr23.
Sourcepub const fn set_xtpr_message_disable(&mut self, value: bool) -> &mut Self
pub const fn set_xtpr_message_disable(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr23.
Sourcepub const fn limit_cpuid_maxval(&self) -> bool
pub const fn limit_cpuid_maxval(&self) -> bool
The value of MiscFeaturesMsr22.
Sourcepub const fn set_limit_cpuid_maxval(&mut self, value: bool) -> &mut Self
pub const fn set_limit_cpuid_maxval(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr22.
Sourcepub const fn eist_select_lock(&self) -> bool
pub const fn eist_select_lock(&self) -> bool
The value of MiscFeaturesMsr20.
Sourcepub const fn set_eist_select_lock(&mut self, value: bool) -> &mut Self
pub const fn set_eist_select_lock(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr20.
Sourcepub const fn adjacent_cache_line_prefetch_disable(&self) -> bool
pub const fn adjacent_cache_line_prefetch_disable(&self) -> bool
The value of MiscFeaturesMsr19.
Sourcepub const fn set_adjacent_cache_line_prefetch_disable(
&mut self,
value: bool,
) -> &mut Self
pub const fn set_adjacent_cache_line_prefetch_disable( &mut self, value: bool, ) -> &mut Self
Sets the value of MiscFeaturesMsr19.
Sourcepub const fn monitor_fsm(&self) -> bool
pub const fn monitor_fsm(&self) -> bool
The value of MiscFeaturesMsr18.
Sourcepub const fn set_monitor_fsm(&mut self, value: bool) -> &mut Self
pub const fn set_monitor_fsm(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr18.
Sourcepub const fn set_eist(&mut self, value: bool) -> &mut Self
pub const fn set_eist(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr16.
The value of MiscFeaturesMsr12.
Sets the value of MiscFeaturesMsr12.
The value of MiscFeaturesMsr11.
Sets the value of MiscFeaturesMsr11.
Sourcepub const fn set_ferr_mux(&mut self, value: bool) -> &mut Self
pub const fn set_ferr_mux(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr10.
Sourcepub const fn hardware_prefetch_disable(&self) -> bool
pub const fn hardware_prefetch_disable(&self) -> bool
The value of MiscFeaturesMsr9.
Sourcepub const fn set_hardware_prefetch_disable(&mut self, value: bool) -> &mut Self
pub const fn set_hardware_prefetch_disable(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr9.
Sourcepub const fn perf_mon_available(&self) -> bool
pub const fn perf_mon_available(&self) -> bool
The value of MiscFeaturesMsr7.
Sourcepub const fn set_perf_mon_available(&mut self, value: bool) -> &mut Self
pub const fn set_perf_mon_available(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr7.
Sourcepub const fn automatic_thermal_control_circuit(&self) -> bool
pub const fn automatic_thermal_control_circuit(&self) -> bool
The value of MiscFeaturesMsr3.
Sourcepub const fn set_automatic_thermal_control_circuit(
&mut self,
value: bool,
) -> &mut Self
pub const fn set_automatic_thermal_control_circuit( &mut self, value: bool, ) -> &mut Self
Sets the value of MiscFeaturesMsr3.
Sourcepub const fn fast_strings(&self) -> bool
pub const fn fast_strings(&self) -> bool
The value of MiscFeaturesMsr0.
Sourcepub const fn set_fast_strings(&mut self, value: bool) -> &mut Self
pub const fn set_fast_strings(&mut self, value: bool) -> &mut Self
Sets the value of MiscFeaturesMsr0.
Source§impl MiscFeaturesMsr
impl MiscFeaturesMsr
pub fn is_supported(vendor: Vendor) -> bool
Trait Implementations§
Source§impl Binary for MiscFeaturesMsr
impl Binary for MiscFeaturesMsr
Source§impl Clone for MiscFeaturesMsr
impl Clone for MiscFeaturesMsr
Source§fn clone(&self) -> MiscFeaturesMsr
fn clone(&self) -> MiscFeaturesMsr
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for MiscFeaturesMsr
Source§impl Debug for MiscFeaturesMsr
impl Debug for MiscFeaturesMsr
Source§impl Default for MiscFeaturesMsr
impl Default for MiscFeaturesMsr
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 MiscFeaturesMsr
Source§impl From<MiscFeaturesMsr> for u64
impl From<MiscFeaturesMsr> for u64
Source§fn from(value: MiscFeaturesMsr) -> Self
fn from(value: MiscFeaturesMsr) -> Self
Source§impl From<u64> for MiscFeaturesMsr
impl From<u64> for MiscFeaturesMsr
Source§impl IntoIterator for MiscFeaturesMsr
impl IntoIterator for MiscFeaturesMsr
Source§impl<'a> IntoIterator for &'a MiscFeaturesMsr
impl<'a> IntoIterator for &'a MiscFeaturesMsr
Source§impl LowerHex for MiscFeaturesMsr
impl LowerHex for MiscFeaturesMsr
Source§impl Octal for MiscFeaturesMsr
impl Octal for MiscFeaturesMsr
Source§impl PartialEq for MiscFeaturesMsr
impl PartialEq for MiscFeaturesMsr
impl StructuralPartialEq for MiscFeaturesMsr
Auto Trait Implementations§
impl Freeze for MiscFeaturesMsr
impl RefUnwindSafe for MiscFeaturesMsr
impl Send for MiscFeaturesMsr
impl Sync for MiscFeaturesMsr
impl Unpin for MiscFeaturesMsr
impl UnsafeUnpin for MiscFeaturesMsr
impl UnwindSafe for MiscFeaturesMsr
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)