Struct hvdef::HvHardwareFeatures

source ·
pub struct HvHardwareFeatures(/* private fields */);

Implementations§

source§

impl HvHardwareFeatures

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

pub const fn from_bits(bits: u128) -> Self

Convert from bits.

source

pub const fn into_bits(self) -> u128

Convert into bits.

source

pub const fn apic_overlay_assist_in_use(&self) -> bool

Bits: 0..1

source

pub const fn with_apic_overlay_assist_in_use(self, value: bool) -> Self

Bits: 0..1

source

pub fn set_apic_overlay_assist_in_use(&mut self, value: bool)

Bits: 0..1

source

pub const fn msr_bitmaps_in_use(&self) -> bool

Bits: 1..2

source

pub const fn with_msr_bitmaps_in_use(self, value: bool) -> Self

Bits: 1..2

source

pub fn set_msr_bitmaps_in_use(&mut self, value: bool)

Bits: 1..2

source

pub const fn architectural_performance_counters_in_use(&self) -> bool

Bits: 2..3

source

pub const fn with_architectural_performance_counters_in_use( self, value: bool, ) -> Self

Bits: 2..3

source

pub fn set_architectural_performance_counters_in_use(&mut self, value: bool)

Bits: 2..3

source

pub const fn second_level_address_translation_in_use(&self) -> bool

Bits: 3..4

source

pub const fn with_second_level_address_translation_in_use( self, value: bool, ) -> Self

Bits: 3..4

source

pub fn set_second_level_address_translation_in_use(&mut self, value: bool)

Bits: 3..4

source

pub const fn dma_remapping_in_use(&self) -> bool

Bits: 4..5

source

pub const fn with_dma_remapping_in_use(self, value: bool) -> Self

Bits: 4..5

source

pub fn set_dma_remapping_in_use(&mut self, value: bool)

Bits: 4..5

source

pub const fn interrupt_remapping_in_use(&self) -> bool

Bits: 5..6

source

pub const fn with_interrupt_remapping_in_use(self, value: bool) -> Self

Bits: 5..6

source

pub fn set_interrupt_remapping_in_use(&mut self, value: bool)

Bits: 5..6

source

pub const fn memory_patrol_scrubber_present(&self) -> bool

Bits: 6..7

source

pub const fn with_memory_patrol_scrubber_present(self, value: bool) -> Self

Bits: 6..7

source

pub fn set_memory_patrol_scrubber_present(&mut self, value: bool)

Bits: 6..7

source

pub const fn dma_protection_in_use(&self) -> bool

Bits: 7..8

source

pub const fn with_dma_protection_in_use(self, value: bool) -> Self

Bits: 7..8

source

pub fn set_dma_protection_in_use(&mut self, value: bool)

Bits: 7..8

source

pub const fn hpet_requested(&self) -> bool

Bits: 8..9

source

pub const fn with_hpet_requested(self, value: bool) -> Self

Bits: 8..9

source

pub fn set_hpet_requested(&mut self, value: bool)

Bits: 8..9

source

pub const fn synthetic_timers_volatile(&self) -> bool

Bits: 9..10

source

pub const fn with_synthetic_timers_volatile(self, value: bool) -> Self

Bits: 9..10

source

pub fn set_synthetic_timers_volatile(&mut self, value: bool)

Bits: 9..10

source

pub const fn hypervisor_level(&self) -> u32

Bits: 10..14

source

pub const fn with_hypervisor_level(self, value: u32) -> Self

Bits: 10..14

source

pub fn set_hypervisor_level(&mut self, value: u32)

Bits: 10..14

source

pub const fn physical_destination_mode_required(&self) -> bool

Bits: 14..15

source

pub const fn with_physical_destination_mode_required(self, value: bool) -> Self

Bits: 14..15

source

pub fn set_physical_destination_mode_required(&mut self, value: bool)

Bits: 14..15

source

pub const fn use_vmfunc_for_alias_map_switch(&self) -> bool

Bits: 15..16

source

pub const fn with_use_vmfunc_for_alias_map_switch(self, value: bool) -> Self

Bits: 15..16

source

pub fn set_use_vmfunc_for_alias_map_switch(&mut self, value: bool)

Bits: 15..16

source

pub const fn hv_register_for_memory_zeroing_supported(&self) -> bool

Bits: 16..17

source

pub const fn with_hv_register_for_memory_zeroing_supported( self, value: bool, ) -> Self

Bits: 16..17

source

pub fn set_hv_register_for_memory_zeroing_supported(&mut self, value: bool)

Bits: 16..17

source

pub const fn unrestricted_guest_supported(&self) -> bool

Bits: 17..18

source

pub const fn with_unrestricted_guest_supported(self, value: bool) -> Self

Bits: 17..18

source

pub fn set_unrestricted_guest_supported(&mut self, value: bool)

Bits: 17..18

source

pub const fn rdt_afeatures_supported(&self) -> bool

Bits: 18..19

source

pub const fn with_rdt_afeatures_supported(self, value: bool) -> Self

Bits: 18..19

source

pub fn set_rdt_afeatures_supported(&mut self, value: bool)

Bits: 18..19

source

pub const fn rdt_mfeatures_supported(&self) -> bool

Bits: 19..20

source

pub const fn with_rdt_mfeatures_supported(self, value: bool) -> Self

Bits: 19..20

source

pub fn set_rdt_mfeatures_supported(&mut self, value: bool)

Bits: 19..20

source

pub const fn child_perfmon_pmu_supported(&self) -> bool

Bits: 20..21

source

pub const fn with_child_perfmon_pmu_supported(self, value: bool) -> Self

Bits: 20..21

source

pub fn set_child_perfmon_pmu_supported(&mut self, value: bool)

Bits: 20..21

source

pub const fn child_perfmon_lbr_supported(&self) -> bool

Bits: 21..22

source

pub const fn with_child_perfmon_lbr_supported(self, value: bool) -> Self

Bits: 21..22

source

pub fn set_child_perfmon_lbr_supported(&mut self, value: bool)

Bits: 21..22

source

pub const fn child_perfmon_ipt_supported(&self) -> bool

Bits: 22..23

source

pub const fn with_child_perfmon_ipt_supported(self, value: bool) -> Self

Bits: 22..23

source

pub fn set_child_perfmon_ipt_supported(&mut self, value: bool)

Bits: 22..23

source

pub const fn apic_emulation_supported(&self) -> bool

Bits: 23..24

source

pub const fn with_apic_emulation_supported(self, value: bool) -> Self

Bits: 23..24

source

pub fn set_apic_emulation_supported(&mut self, value: bool)

Bits: 23..24

Bits: 24..25

Bits: 24..25

Bits: 24..25

source

pub const fn hardware_watchdog_reserved(&self) -> bool

Bits: 25..26

source

pub const fn with_hardware_watchdog_reserved(self, value: bool) -> Self

Bits: 25..26

source

pub fn set_hardware_watchdog_reserved(&mut self, value: bool)

Bits: 25..26

source

pub const fn device_access_tracking_supported(&self) -> bool

Bits: 26..27

source

pub const fn with_device_access_tracking_supported(self, value: bool) -> Self

Bits: 26..27

source

pub fn set_device_access_tracking_supported(&mut self, value: bool)

Bits: 26..27

source

pub const fn hardware_gpa_access_tracking_supported(&self) -> bool

Bits: 27..28

source

pub const fn with_hardware_gpa_access_tracking_supported( self, value: bool, ) -> Self

Bits: 27..28

source

pub fn set_hardware_gpa_access_tracking_supported(&mut self, value: bool)

Bits: 27..28

source

pub const fn device_domain_input_width(&self) -> u8

Bits: 32..40

source

pub const fn with_device_domain_input_width(self, value: u8) -> Self

Bits: 32..40

source

pub fn set_device_domain_input_width(&mut self, value: u8)

Bits: 32..40

Trait Implementations§

source§

impl Clone for HvHardwareFeatures

source§

fn clone(&self) -> HvHardwareFeatures

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for HvHardwareFeatures

source§

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

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

impl Default for HvHardwareFeatures

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<HvHardwareFeatures> for u128

source§

fn from(v: HvHardwareFeatures) -> u128

Converts to this type from the input type.
source§

impl From<u128> for HvHardwareFeatures

source§

fn from(v: u128) -> Self

Converts to this type from the input type.
source§

impl Copy for HvHardwareFeatures

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

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<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

source§

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

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

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

Performs the conversion.