Skip to main content

MiscFeaturesMsr

Struct MiscFeaturesMsr 

Source
pub struct MiscFeaturesMsr(/* private fields */);
Expand description

Layout for IA32_MISC_ENABLE.

Implementations§

Source§

impl MiscFeaturesMsr

Source

pub const RSVD1_MASK: u64

Mask of all reserved-as-1 bits.

Source

pub const RSVD0_MASK: u64

Mask of all reserved-as-0 bits.

Source

pub const DEFAULT: u64

The default value of the layout, combining all field defaults and reserved-as values.

Source

pub const IP_PREFETCH_DISABLE_MASK: u64

Unshifted bitmask of ip_prefetch_disable.

Source

pub const IP_PREFETCH_DISABLE_SHIFT: usize = 39

Bit shift (i.e., the low bit) of ip_prefetch_disable.

Source

pub const IDA_DISABLE_MASK: u64

Unshifted bitmask of ida_disable.

Source

pub const IDA_DISABLE_SHIFT: usize = 38

Bit shift (i.e., the low bit) of ida_disable.

Source

pub const DCU_PREFETCH_DISABLE_MASK: u64

Unshifted bitmask of dcu_prefetch_disable.

Source

pub const DCU_PREFETCH_DISABLE_SHIFT: usize = 37

Bit shift (i.e., the low bit) of dcu_prefetch_disable.

Source

pub const XD_BIT_DISABLE_MASK: u64

Unshifted bitmask of xd_bit_disable.

Source

pub const XD_BIT_DISABLE_SHIFT: usize = 34

Bit shift (i.e., the low bit) of xd_bit_disable.

Source

pub const XTPR_MESSAGE_DISABLE_MASK: u64

Unshifted bitmask of xtpr_message_disable.

Source

pub const XTPR_MESSAGE_DISABLE_SHIFT: usize = 23

Bit shift (i.e., the low bit) of xtpr_message_disable.

Source

pub const LIMIT_CPUID_MAXVAL_MASK: u64

Unshifted bitmask of limit_cpuid_maxval.

Source

pub const LIMIT_CPUID_MAXVAL_SHIFT: usize = 22

Bit shift (i.e., the low bit) of limit_cpuid_maxval.

Source

pub const EIST_SELECT_LOCK_MASK: u64

Unshifted bitmask of eist_select_lock.

Source

pub const EIST_SELECT_LOCK_SHIFT: usize = 20

Bit shift (i.e., the low bit) of eist_select_lock.

Source

pub const ADJACENT_CACHE_LINE_PREFETCH_DISABLE_MASK: u64

Unshifted bitmask of adjacent_cache_line_prefetch_disable.

Source

pub const ADJACENT_CACHE_LINE_PREFETCH_DISABLE_SHIFT: usize = 19

Bit shift (i.e., the low bit) of adjacent_cache_line_prefetch_disable.

Source

pub const MONITOR_FSM_MASK: u64

Unshifted bitmask of monitor_fsm.

Source

pub const MONITOR_FSM_SHIFT: usize = 18

Bit shift (i.e., the low bit) of monitor_fsm.

Source

pub const EIST_MASK: u64

Unshifted bitmask of eist.

Source

pub const EIST_SHIFT: usize = 16

Bit shift (i.e., the low bit) of eist.

Source

pub const TM2_MASK: u64

Unshifted bitmask of tm2.

Source

pub const TM2_SHIFT: usize = 13

Bit shift (i.e., the low bit) of tm2.

Source

pub const PEBS_UNAVAILABLE_MASK: u64

Unshifted bitmask of pebs_unavailable.

Source

pub const PEBS_UNAVAILABLE_SHIFT: usize = 12

Bit shift (i.e., the low bit) of pebs_unavailable.

Source

pub const BTS_UNAVAILABLE_MASK: u64

Unshifted bitmask of bts_unavailable.

Source

pub const BTS_UNAVAILABLE_SHIFT: usize = 11

Bit shift (i.e., the low bit) of bts_unavailable.

Source

pub const FERR_MUX_MASK: u64

Unshifted bitmask of ferr_mux.

Source

pub const FERR_MUX_SHIFT: usize = 10

Bit shift (i.e., the low bit) of ferr_mux.

Source

pub const HARDWARE_PREFETCH_DISABLE_MASK: u64

Unshifted bitmask of hardware_prefetch_disable.

Source

pub const HARDWARE_PREFETCH_DISABLE_SHIFT: usize = 9

Bit shift (i.e., the low bit) of hardware_prefetch_disable.

Source

pub const PERF_MON_AVAILABLE_MASK: u64

Unshifted bitmask of perf_mon_available.

Source

pub const PERF_MON_AVAILABLE_SHIFT: usize = 7

Bit shift (i.e., the low bit) of perf_mon_available.

Source

pub const AUTOMATIC_THERMAL_CONTROL_CIRCUIT_MASK: u64

Unshifted bitmask of automatic_thermal_control_circuit.

Source

pub const AUTOMATIC_THERMAL_CONTROL_CIRCUIT_SHIFT: usize = 3

Bit shift (i.e., the low bit) of automatic_thermal_control_circuit.

Source

pub const FAST_STRINGS_MASK: u64

Unshifted bitmask of fast_strings.

Source

pub const FAST_STRINGS_SHIFT: usize = 0

Bit shift (i.e., the low bit) of fast_strings.

Source

pub const FIELDS: [FieldMetadata<u64>; 18]

Metadata of all named fields in the layout.

Source

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).

Source

pub const fn bits(self) -> u64

Source

pub const fn ip_prefetch_disable(&self) -> bool

The value of MiscFeaturesMsr39.

Source

pub const fn set_ip_prefetch_disable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr39.

Source

pub const fn ida_disable(&self) -> bool

The value of MiscFeaturesMsr38.

Source

pub const fn set_ida_disable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr38.

Source

pub const fn dcu_prefetch_disable(&self) -> bool

The value of MiscFeaturesMsr37.

Source

pub const fn set_dcu_prefetch_disable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr37.

Source

pub const fn xd_bit_disable(&self) -> bool

The value of MiscFeaturesMsr34.

Source

pub const fn set_xd_bit_disable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr34.

Source

pub const fn xtpr_message_disable(&self) -> bool

The value of MiscFeaturesMsr23.

Source

pub const fn set_xtpr_message_disable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr23.

Source

pub const fn limit_cpuid_maxval(&self) -> bool

The value of MiscFeaturesMsr22.

Source

pub const fn set_limit_cpuid_maxval(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr22.

Source

pub const fn eist_select_lock(&self) -> bool

The value of MiscFeaturesMsr20.

Source

pub const fn set_eist_select_lock(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr20.

Source

pub const fn adjacent_cache_line_prefetch_disable(&self) -> bool

The value of MiscFeaturesMsr19.

Source

pub const fn set_adjacent_cache_line_prefetch_disable( &mut self, value: bool, ) -> &mut Self

Sets the value of MiscFeaturesMsr19.

Source

pub const fn monitor_fsm(&self) -> bool

The value of MiscFeaturesMsr18.

Source

pub const fn set_monitor_fsm(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr18.

Source

pub const fn eist(&self) -> bool

The value of MiscFeaturesMsr16.

Source

pub const fn set_eist(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr16.

Source

pub const fn tm2(&self) -> bool

The value of MiscFeaturesMsr13.

Source

pub const fn set_tm2(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr13.

Source

pub const fn pebs_unavailable(&self) -> bool

The value of MiscFeaturesMsr12.

Source

pub const fn set_pebs_unavailable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr12.

Source

pub const fn bts_unavailable(&self) -> bool

The value of MiscFeaturesMsr11.

Source

pub const fn set_bts_unavailable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr11.

Source

pub const fn ferr_mux(&self) -> bool

The value of MiscFeaturesMsr10.

Source

pub const fn set_ferr_mux(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr10.

Source

pub const fn hardware_prefetch_disable(&self) -> bool

The value of MiscFeaturesMsr9.

Source

pub const fn set_hardware_prefetch_disable(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr9.

Source

pub const fn perf_mon_available(&self) -> bool

The value of MiscFeaturesMsr7.

Source

pub const fn set_perf_mon_available(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr7.

Source

pub const fn automatic_thermal_control_circuit(&self) -> bool

The value of MiscFeaturesMsr3.

Source

pub const fn set_automatic_thermal_control_circuit( &mut self, value: bool, ) -> &mut Self

Sets the value of MiscFeaturesMsr3.

Source

pub const fn fast_strings(&self) -> bool

The value of MiscFeaturesMsr0.

Source

pub const fn set_fast_strings(&mut self, value: bool) -> &mut Self

Sets the value of MiscFeaturesMsr0.

Source§

impl MiscFeaturesMsr

Source

pub fn iter(&self) -> MiscFeaturesMsrIter

Returns an iterator over (metadata, value) pairs for each field.

Source§

impl MiscFeaturesMsr

Source

pub fn is_supported(vendor: Vendor) -> bool

Trait Implementations§

Source§

impl Binary for MiscFeaturesMsr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Clone for MiscFeaturesMsr

Source§

fn clone(&self) -> MiscFeaturesMsr

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for MiscFeaturesMsr

Source§

impl Debug for MiscFeaturesMsr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for MiscFeaturesMsr

Source§

fn default() -> Self

Returns an instance with the default bits set (i.e,. with a value of Self::DEFAULT.

Source§

impl Eq for MiscFeaturesMsr

Source§

impl From<MiscFeaturesMsr> for u64

Source§

fn from(value: MiscFeaturesMsr) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for MiscFeaturesMsr

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl IntoIterator for MiscFeaturesMsr

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = MiscFeaturesMsrIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a> IntoIterator for &'a MiscFeaturesMsr

Source§

type Item = (&'static FieldMetadata<u64>, u64)

The type of the elements being iterated over.
Source§

type IntoIter = MiscFeaturesMsrIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl LowerHex for MiscFeaturesMsr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Octal for MiscFeaturesMsr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for MiscFeaturesMsr

Source§

fn eq(&self, other: &MiscFeaturesMsr) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MiscFeaturesMsr

Source§

impl UpperHex for MiscFeaturesMsr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<Layout, Base> LayoutOver<Base> for Layout
where Layout: Copy + From<Base> + Into<Base>,

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = !

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.