Struct hvdef::HvFeatures

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

Implementations§

source§

impl HvFeatures

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 privileges(&self) -> u64

Bits: 0..64

source

pub const fn with_privileges(self, value: u64) -> Self

Bits: 0..64

source

pub fn set_privileges(&mut self, value: u64)

Bits: 0..64

source

pub const fn max_supported_cstate(&self) -> u32

Bits: 64..68

source

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

Bits: 64..68

source

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

Bits: 64..68

source

pub const fn hpet_needed_for_c3_power_state_deprecated(&self) -> bool

Bits: 68..69

source

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

Bits: 68..69

source

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

Bits: 68..69

source

pub const fn invariant_mperf_available(&self) -> bool

Bits: 69..70

source

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

Bits: 69..70

source

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

Bits: 69..70

source

pub const fn supervisor_shadow_stack_available(&self) -> bool

Bits: 70..71

source

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

Bits: 70..71

source

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

Bits: 70..71

source

pub const fn arch_pmu_available(&self) -> bool

Bits: 71..72

source

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

Bits: 71..72

source

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

Bits: 71..72

source

pub const fn exception_trap_intercept_available(&self) -> bool

Bits: 72..73

source

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

Bits: 72..73

source

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

Bits: 72..73

source

pub const fn mwait_available_deprecated(&self) -> bool

Bits: 96..97

source

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

Bits: 96..97

source

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

Bits: 96..97

source

pub const fn guest_debugging_available(&self) -> bool

Bits: 97..98

source

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

Bits: 97..98

source

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

Bits: 97..98

source

pub const fn performance_monitors_available(&self) -> bool

Bits: 98..99

source

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

Bits: 98..99

source

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

Bits: 98..99

source

pub const fn cpu_dynamic_partitioning_available(&self) -> bool

Bits: 99..100

source

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

Bits: 99..100

source

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

Bits: 99..100

source

pub const fn xmm_registers_for_fast_hypercall_available(&self) -> bool

Bits: 100..101

source

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

Bits: 100..101

source

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

Bits: 100..101

source

pub const fn guest_idle_available(&self) -> bool

Bits: 101..102

source

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

Bits: 101..102

source

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

Bits: 101..102

source

pub const fn hypervisor_sleep_state_support_available(&self) -> bool

Bits: 102..103

source

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

Bits: 102..103

source

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

Bits: 102..103

source

pub const fn numa_distance_query_available(&self) -> bool

Bits: 103..104

source

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

Bits: 103..104

source

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

Bits: 103..104

source

pub const fn frequency_regs_available(&self) -> bool

Bits: 104..105

source

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

Bits: 104..105

source

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

Bits: 104..105

source

pub const fn synthetic_machine_check_available(&self) -> bool

Bits: 105..106

source

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

Bits: 105..106

source

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

Bits: 105..106

source

pub const fn guest_crash_regs_available(&self) -> bool

Bits: 106..107

source

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

Bits: 106..107

source

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

Bits: 106..107

source

pub const fn debug_regs_available(&self) -> bool

Bits: 107..108

source

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

Bits: 107..108

source

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

Bits: 107..108

source

pub const fn npiep1_available(&self) -> bool

Bits: 108..109

source

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

Bits: 108..109

source

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

Bits: 108..109

source

pub const fn disable_hypervisor_available(&self) -> bool

Bits: 109..110

source

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

Bits: 109..110

source

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

Bits: 109..110

source

pub const fn extended_gva_ranges_for_flush_virtual_address_list_available( &self, ) -> bool

Bits: 110..111

source

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

Bits: 110..111

source

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

Bits: 110..111

source

pub const fn fast_hypercall_output_available(&self) -> bool

Bits: 111..112

source

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

Bits: 111..112

source

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

Bits: 111..112

source

pub const fn svm_features_available(&self) -> bool

Bits: 112..113

source

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

Bits: 112..113

source

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

Bits: 112..113

source

pub const fn sint_polling_mode_available(&self) -> bool

Bits: 113..114

source

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

Bits: 113..114

source

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

Bits: 113..114

source

pub const fn hypercall_msr_lock_available(&self) -> bool

Bits: 114..115

source

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

Bits: 114..115

source

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

Bits: 114..115

source

pub const fn direct_synthetic_timers(&self) -> bool

Bits: 115..116

source

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

Bits: 115..116

source

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

Bits: 115..116

source

pub const fn register_pat_available(&self) -> bool

Bits: 116..117

source

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

Bits: 116..117

source

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

Bits: 116..117

source

pub const fn register_bndcfgs_available(&self) -> bool

Bits: 117..118

source

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

Bits: 117..118

source

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

Bits: 117..118

source

pub const fn watchdog_timer_available(&self) -> bool

Bits: 118..119

source

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

Bits: 118..119

source

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

Bits: 118..119

source

pub const fn synthetic_time_unhalted_timer_available(&self) -> bool

Bits: 119..120

source

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

Bits: 119..120

source

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

Bits: 119..120

source

pub const fn device_domains_available(&self) -> bool

Bits: 120..121

source

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

Bits: 120..121

source

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

Bits: 120..121

source

pub const fn s1_device_domains_available(&self) -> bool

Bits: 121..122

source

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

Bits: 121..122

source

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

Bits: 121..122

source

pub const fn lbr_available(&self) -> bool

Bits: 122..123

source

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

Bits: 122..123

source

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

Bits: 122..123

source

pub const fn ipt_available(&self) -> bool

Bits: 123..124

source

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

Bits: 123..124

source

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

Bits: 123..124

source

pub const fn cross_vtl_flush_available(&self) -> bool

Bits: 124..125

source

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

Bits: 124..125

source

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

Bits: 124..125

source

pub const fn idle_spec_ctrl_available(&self) -> bool

Bits: 125..126

source

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

Bits: 125..126

source

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

Bits: 125..126

source

pub const fn translate_gva_flags_available(&self) -> bool

Bits: 126..127

source

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

Bits: 126..127

source

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

Bits: 126..127

source

pub const fn apic_eoi_intercept_available(&self) -> bool

Bits: 127..128

source

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

Bits: 127..128

source

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

Bits: 127..128

Trait Implementations§

source§

impl Clone for HvFeatures

source§

fn clone(&self) -> HvFeatures

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 HvFeatures

source§

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

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

impl Default for HvFeatures

source§

fn default() -> Self

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

impl From<HvFeatures> for u128

source§

fn from(v: HvFeatures) -> u128

Converts to this type from the input type.
source§

impl From<u128> for HvFeatures

source§

fn from(v: u128) -> Self

Converts to this type from the input type.
source§

impl Copy for HvFeatures

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.