Struct hvdef::HvFeatures
source · pub struct HvFeatures(/* private fields */);
Implementations§
source§impl HvFeatures
impl HvFeatures
sourcepub const fn privileges(&self) -> u64
pub const fn privileges(&self) -> u64
Bits: 0..64
sourcepub const fn with_privileges(self, value: u64) -> Self
pub const fn with_privileges(self, value: u64) -> Self
Bits: 0..64
sourcepub fn set_privileges(&mut self, value: u64)
pub fn set_privileges(&mut self, value: u64)
Bits: 0..64
sourcepub const fn max_supported_cstate(&self) -> u32
pub const fn max_supported_cstate(&self) -> u32
Bits: 64..68
sourcepub const fn with_max_supported_cstate(self, value: u32) -> Self
pub const fn with_max_supported_cstate(self, value: u32) -> Self
Bits: 64..68
sourcepub fn set_max_supported_cstate(&mut self, value: u32)
pub fn set_max_supported_cstate(&mut self, value: u32)
Bits: 64..68
sourcepub const fn hpet_needed_for_c3_power_state_deprecated(&self) -> bool
pub const fn hpet_needed_for_c3_power_state_deprecated(&self) -> bool
Bits: 68..69
sourcepub const fn with_hpet_needed_for_c3_power_state_deprecated(
self,
value: bool,
) -> Self
pub const fn with_hpet_needed_for_c3_power_state_deprecated( self, value: bool, ) -> Self
Bits: 68..69
sourcepub fn set_hpet_needed_for_c3_power_state_deprecated(&mut self, value: bool)
pub fn set_hpet_needed_for_c3_power_state_deprecated(&mut self, value: bool)
Bits: 68..69
sourcepub const fn invariant_mperf_available(&self) -> bool
pub const fn invariant_mperf_available(&self) -> bool
Bits: 69..70
sourcepub const fn with_invariant_mperf_available(self, value: bool) -> Self
pub const fn with_invariant_mperf_available(self, value: bool) -> Self
Bits: 69..70
sourcepub fn set_invariant_mperf_available(&mut self, value: bool)
pub fn set_invariant_mperf_available(&mut self, value: bool)
Bits: 69..70
sourcepub const fn supervisor_shadow_stack_available(&self) -> bool
pub const fn supervisor_shadow_stack_available(&self) -> bool
Bits: 70..71
sourcepub const fn with_supervisor_shadow_stack_available(self, value: bool) -> Self
pub const fn with_supervisor_shadow_stack_available(self, value: bool) -> Self
Bits: 70..71
sourcepub fn set_supervisor_shadow_stack_available(&mut self, value: bool)
pub fn set_supervisor_shadow_stack_available(&mut self, value: bool)
Bits: 70..71
sourcepub const fn arch_pmu_available(&self) -> bool
pub const fn arch_pmu_available(&self) -> bool
Bits: 71..72
sourcepub const fn with_arch_pmu_available(self, value: bool) -> Self
pub const fn with_arch_pmu_available(self, value: bool) -> Self
Bits: 71..72
sourcepub fn set_arch_pmu_available(&mut self, value: bool)
pub fn set_arch_pmu_available(&mut self, value: bool)
Bits: 71..72
sourcepub const fn exception_trap_intercept_available(&self) -> bool
pub const fn exception_trap_intercept_available(&self) -> bool
Bits: 72..73
sourcepub const fn with_exception_trap_intercept_available(self, value: bool) -> Self
pub const fn with_exception_trap_intercept_available(self, value: bool) -> Self
Bits: 72..73
sourcepub fn set_exception_trap_intercept_available(&mut self, value: bool)
pub fn set_exception_trap_intercept_available(&mut self, value: bool)
Bits: 72..73
sourcepub const fn mwait_available_deprecated(&self) -> bool
pub const fn mwait_available_deprecated(&self) -> bool
Bits: 96..97
sourcepub const fn with_mwait_available_deprecated(self, value: bool) -> Self
pub const fn with_mwait_available_deprecated(self, value: bool) -> Self
Bits: 96..97
sourcepub fn set_mwait_available_deprecated(&mut self, value: bool)
pub fn set_mwait_available_deprecated(&mut self, value: bool)
Bits: 96..97
sourcepub const fn guest_debugging_available(&self) -> bool
pub const fn guest_debugging_available(&self) -> bool
Bits: 97..98
sourcepub const fn with_guest_debugging_available(self, value: bool) -> Self
pub const fn with_guest_debugging_available(self, value: bool) -> Self
Bits: 97..98
sourcepub fn set_guest_debugging_available(&mut self, value: bool)
pub fn set_guest_debugging_available(&mut self, value: bool)
Bits: 97..98
sourcepub const fn performance_monitors_available(&self) -> bool
pub const fn performance_monitors_available(&self) -> bool
Bits: 98..99
sourcepub const fn with_performance_monitors_available(self, value: bool) -> Self
pub const fn with_performance_monitors_available(self, value: bool) -> Self
Bits: 98..99
sourcepub fn set_performance_monitors_available(&mut self, value: bool)
pub fn set_performance_monitors_available(&mut self, value: bool)
Bits: 98..99
sourcepub const fn cpu_dynamic_partitioning_available(&self) -> bool
pub const fn cpu_dynamic_partitioning_available(&self) -> bool
Bits: 99..100
sourcepub const fn with_cpu_dynamic_partitioning_available(self, value: bool) -> Self
pub const fn with_cpu_dynamic_partitioning_available(self, value: bool) -> Self
Bits: 99..100
sourcepub fn set_cpu_dynamic_partitioning_available(&mut self, value: bool)
pub fn set_cpu_dynamic_partitioning_available(&mut self, value: bool)
Bits: 99..100
sourcepub const fn xmm_registers_for_fast_hypercall_available(&self) -> bool
pub const fn xmm_registers_for_fast_hypercall_available(&self) -> bool
Bits: 100..101
sourcepub const fn with_xmm_registers_for_fast_hypercall_available(
self,
value: bool,
) -> Self
pub const fn with_xmm_registers_for_fast_hypercall_available( self, value: bool, ) -> Self
Bits: 100..101
sourcepub fn set_xmm_registers_for_fast_hypercall_available(&mut self, value: bool)
pub fn set_xmm_registers_for_fast_hypercall_available(&mut self, value: bool)
Bits: 100..101
sourcepub const fn guest_idle_available(&self) -> bool
pub const fn guest_idle_available(&self) -> bool
Bits: 101..102
sourcepub const fn with_guest_idle_available(self, value: bool) -> Self
pub const fn with_guest_idle_available(self, value: bool) -> Self
Bits: 101..102
sourcepub fn set_guest_idle_available(&mut self, value: bool)
pub fn set_guest_idle_available(&mut self, value: bool)
Bits: 101..102
sourcepub const fn hypervisor_sleep_state_support_available(&self) -> bool
pub const fn hypervisor_sleep_state_support_available(&self) -> bool
Bits: 102..103
sourcepub const fn with_hypervisor_sleep_state_support_available(
self,
value: bool,
) -> Self
pub const fn with_hypervisor_sleep_state_support_available( self, value: bool, ) -> Self
Bits: 102..103
sourcepub fn set_hypervisor_sleep_state_support_available(&mut self, value: bool)
pub fn set_hypervisor_sleep_state_support_available(&mut self, value: bool)
Bits: 102..103
sourcepub const fn numa_distance_query_available(&self) -> bool
pub const fn numa_distance_query_available(&self) -> bool
Bits: 103..104
sourcepub const fn with_numa_distance_query_available(self, value: bool) -> Self
pub const fn with_numa_distance_query_available(self, value: bool) -> Self
Bits: 103..104
sourcepub fn set_numa_distance_query_available(&mut self, value: bool)
pub fn set_numa_distance_query_available(&mut self, value: bool)
Bits: 103..104
sourcepub const fn frequency_regs_available(&self) -> bool
pub const fn frequency_regs_available(&self) -> bool
Bits: 104..105
sourcepub const fn with_frequency_regs_available(self, value: bool) -> Self
pub const fn with_frequency_regs_available(self, value: bool) -> Self
Bits: 104..105
sourcepub fn set_frequency_regs_available(&mut self, value: bool)
pub fn set_frequency_regs_available(&mut self, value: bool)
Bits: 104..105
sourcepub const fn synthetic_machine_check_available(&self) -> bool
pub const fn synthetic_machine_check_available(&self) -> bool
Bits: 105..106
sourcepub const fn with_synthetic_machine_check_available(self, value: bool) -> Self
pub const fn with_synthetic_machine_check_available(self, value: bool) -> Self
Bits: 105..106
sourcepub fn set_synthetic_machine_check_available(&mut self, value: bool)
pub fn set_synthetic_machine_check_available(&mut self, value: bool)
Bits: 105..106
sourcepub const fn guest_crash_regs_available(&self) -> bool
pub const fn guest_crash_regs_available(&self) -> bool
Bits: 106..107
sourcepub const fn with_guest_crash_regs_available(self, value: bool) -> Self
pub const fn with_guest_crash_regs_available(self, value: bool) -> Self
Bits: 106..107
sourcepub fn set_guest_crash_regs_available(&mut self, value: bool)
pub fn set_guest_crash_regs_available(&mut self, value: bool)
Bits: 106..107
sourcepub const fn debug_regs_available(&self) -> bool
pub const fn debug_regs_available(&self) -> bool
Bits: 107..108
sourcepub const fn with_debug_regs_available(self, value: bool) -> Self
pub const fn with_debug_regs_available(self, value: bool) -> Self
Bits: 107..108
sourcepub fn set_debug_regs_available(&mut self, value: bool)
pub fn set_debug_regs_available(&mut self, value: bool)
Bits: 107..108
sourcepub const fn npiep1_available(&self) -> bool
pub const fn npiep1_available(&self) -> bool
Bits: 108..109
sourcepub const fn with_npiep1_available(self, value: bool) -> Self
pub const fn with_npiep1_available(self, value: bool) -> Self
Bits: 108..109
sourcepub fn set_npiep1_available(&mut self, value: bool)
pub fn set_npiep1_available(&mut self, value: bool)
Bits: 108..109
sourcepub const fn disable_hypervisor_available(&self) -> bool
pub const fn disable_hypervisor_available(&self) -> bool
Bits: 109..110
sourcepub const fn with_disable_hypervisor_available(self, value: bool) -> Self
pub const fn with_disable_hypervisor_available(self, value: bool) -> Self
Bits: 109..110
sourcepub fn set_disable_hypervisor_available(&mut self, value: bool)
pub fn set_disable_hypervisor_available(&mut self, value: bool)
Bits: 109..110
sourcepub const fn extended_gva_ranges_for_flush_virtual_address_list_available(
&self,
) -> bool
pub const fn extended_gva_ranges_for_flush_virtual_address_list_available( &self, ) -> bool
Bits: 110..111
sourcepub const fn with_extended_gva_ranges_for_flush_virtual_address_list_available(
self,
value: bool,
) -> Self
pub const fn with_extended_gva_ranges_for_flush_virtual_address_list_available( self, value: bool, ) -> Self
Bits: 110..111
sourcepub fn set_extended_gva_ranges_for_flush_virtual_address_list_available(
&mut self,
value: bool,
)
pub fn set_extended_gva_ranges_for_flush_virtual_address_list_available( &mut self, value: bool, )
Bits: 110..111
sourcepub const fn fast_hypercall_output_available(&self) -> bool
pub const fn fast_hypercall_output_available(&self) -> bool
Bits: 111..112
sourcepub const fn with_fast_hypercall_output_available(self, value: bool) -> Self
pub const fn with_fast_hypercall_output_available(self, value: bool) -> Self
Bits: 111..112
sourcepub fn set_fast_hypercall_output_available(&mut self, value: bool)
pub fn set_fast_hypercall_output_available(&mut self, value: bool)
Bits: 111..112
sourcepub const fn svm_features_available(&self) -> bool
pub const fn svm_features_available(&self) -> bool
Bits: 112..113
sourcepub const fn with_svm_features_available(self, value: bool) -> Self
pub const fn with_svm_features_available(self, value: bool) -> Self
Bits: 112..113
sourcepub fn set_svm_features_available(&mut self, value: bool)
pub fn set_svm_features_available(&mut self, value: bool)
Bits: 112..113
sourcepub const fn sint_polling_mode_available(&self) -> bool
pub const fn sint_polling_mode_available(&self) -> bool
Bits: 113..114
sourcepub const fn with_sint_polling_mode_available(self, value: bool) -> Self
pub const fn with_sint_polling_mode_available(self, value: bool) -> Self
Bits: 113..114
sourcepub fn set_sint_polling_mode_available(&mut self, value: bool)
pub fn set_sint_polling_mode_available(&mut self, value: bool)
Bits: 113..114
sourcepub const fn hypercall_msr_lock_available(&self) -> bool
pub const fn hypercall_msr_lock_available(&self) -> bool
Bits: 114..115
sourcepub const fn with_hypercall_msr_lock_available(self, value: bool) -> Self
pub const fn with_hypercall_msr_lock_available(self, value: bool) -> Self
Bits: 114..115
sourcepub fn set_hypercall_msr_lock_available(&mut self, value: bool)
pub fn set_hypercall_msr_lock_available(&mut self, value: bool)
Bits: 114..115
sourcepub const fn direct_synthetic_timers(&self) -> bool
pub const fn direct_synthetic_timers(&self) -> bool
Bits: 115..116
sourcepub const fn with_direct_synthetic_timers(self, value: bool) -> Self
pub const fn with_direct_synthetic_timers(self, value: bool) -> Self
Bits: 115..116
sourcepub fn set_direct_synthetic_timers(&mut self, value: bool)
pub fn set_direct_synthetic_timers(&mut self, value: bool)
Bits: 115..116
sourcepub const fn register_pat_available(&self) -> bool
pub const fn register_pat_available(&self) -> bool
Bits: 116..117
sourcepub const fn with_register_pat_available(self, value: bool) -> Self
pub const fn with_register_pat_available(self, value: bool) -> Self
Bits: 116..117
sourcepub fn set_register_pat_available(&mut self, value: bool)
pub fn set_register_pat_available(&mut self, value: bool)
Bits: 116..117
sourcepub const fn register_bndcfgs_available(&self) -> bool
pub const fn register_bndcfgs_available(&self) -> bool
Bits: 117..118
sourcepub const fn with_register_bndcfgs_available(self, value: bool) -> Self
pub const fn with_register_bndcfgs_available(self, value: bool) -> Self
Bits: 117..118
sourcepub fn set_register_bndcfgs_available(&mut self, value: bool)
pub fn set_register_bndcfgs_available(&mut self, value: bool)
Bits: 117..118
sourcepub const fn watchdog_timer_available(&self) -> bool
pub const fn watchdog_timer_available(&self) -> bool
Bits: 118..119
sourcepub const fn with_watchdog_timer_available(self, value: bool) -> Self
pub const fn with_watchdog_timer_available(self, value: bool) -> Self
Bits: 118..119
sourcepub fn set_watchdog_timer_available(&mut self, value: bool)
pub fn set_watchdog_timer_available(&mut self, value: bool)
Bits: 118..119
sourcepub const fn synthetic_time_unhalted_timer_available(&self) -> bool
pub const fn synthetic_time_unhalted_timer_available(&self) -> bool
Bits: 119..120
sourcepub const fn with_synthetic_time_unhalted_timer_available(
self,
value: bool,
) -> Self
pub const fn with_synthetic_time_unhalted_timer_available( self, value: bool, ) -> Self
Bits: 119..120
sourcepub fn set_synthetic_time_unhalted_timer_available(&mut self, value: bool)
pub fn set_synthetic_time_unhalted_timer_available(&mut self, value: bool)
Bits: 119..120
sourcepub const fn device_domains_available(&self) -> bool
pub const fn device_domains_available(&self) -> bool
Bits: 120..121
sourcepub const fn with_device_domains_available(self, value: bool) -> Self
pub const fn with_device_domains_available(self, value: bool) -> Self
Bits: 120..121
sourcepub fn set_device_domains_available(&mut self, value: bool)
pub fn set_device_domains_available(&mut self, value: bool)
Bits: 120..121
sourcepub const fn s1_device_domains_available(&self) -> bool
pub const fn s1_device_domains_available(&self) -> bool
Bits: 121..122
sourcepub const fn with_s1_device_domains_available(self, value: bool) -> Self
pub const fn with_s1_device_domains_available(self, value: bool) -> Self
Bits: 121..122
sourcepub fn set_s1_device_domains_available(&mut self, value: bool)
pub fn set_s1_device_domains_available(&mut self, value: bool)
Bits: 121..122
sourcepub const fn lbr_available(&self) -> bool
pub const fn lbr_available(&self) -> bool
Bits: 122..123
sourcepub const fn with_lbr_available(self, value: bool) -> Self
pub const fn with_lbr_available(self, value: bool) -> Self
Bits: 122..123
sourcepub fn set_lbr_available(&mut self, value: bool)
pub fn set_lbr_available(&mut self, value: bool)
Bits: 122..123
sourcepub const fn ipt_available(&self) -> bool
pub const fn ipt_available(&self) -> bool
Bits: 123..124
sourcepub const fn with_ipt_available(self, value: bool) -> Self
pub const fn with_ipt_available(self, value: bool) -> Self
Bits: 123..124
sourcepub fn set_ipt_available(&mut self, value: bool)
pub fn set_ipt_available(&mut self, value: bool)
Bits: 123..124
sourcepub const fn cross_vtl_flush_available(&self) -> bool
pub const fn cross_vtl_flush_available(&self) -> bool
Bits: 124..125
sourcepub const fn with_cross_vtl_flush_available(self, value: bool) -> Self
pub const fn with_cross_vtl_flush_available(self, value: bool) -> Self
Bits: 124..125
sourcepub fn set_cross_vtl_flush_available(&mut self, value: bool)
pub fn set_cross_vtl_flush_available(&mut self, value: bool)
Bits: 124..125
sourcepub const fn idle_spec_ctrl_available(&self) -> bool
pub const fn idle_spec_ctrl_available(&self) -> bool
Bits: 125..126
sourcepub const fn with_idle_spec_ctrl_available(self, value: bool) -> Self
pub const fn with_idle_spec_ctrl_available(self, value: bool) -> Self
Bits: 125..126
sourcepub fn set_idle_spec_ctrl_available(&mut self, value: bool)
pub fn set_idle_spec_ctrl_available(&mut self, value: bool)
Bits: 125..126
sourcepub const fn translate_gva_flags_available(&self) -> bool
pub const fn translate_gva_flags_available(&self) -> bool
Bits: 126..127
sourcepub const fn with_translate_gva_flags_available(self, value: bool) -> Self
pub const fn with_translate_gva_flags_available(self, value: bool) -> Self
Bits: 126..127
sourcepub fn set_translate_gva_flags_available(&mut self, value: bool)
pub fn set_translate_gva_flags_available(&mut self, value: bool)
Bits: 126..127
sourcepub const fn apic_eoi_intercept_available(&self) -> bool
pub const fn apic_eoi_intercept_available(&self) -> bool
Bits: 127..128
sourcepub const fn with_apic_eoi_intercept_available(self, value: bool) -> Self
pub const fn with_apic_eoi_intercept_available(self, value: bool) -> Self
Bits: 127..128
sourcepub fn set_apic_eoi_intercept_available(&mut self, value: bool)
pub fn set_apic_eoi_intercept_available(&mut self, value: bool)
Bits: 127..128
Trait Implementations§
source§impl Clone for HvFeatures
impl Clone for HvFeatures
source§fn clone(&self) -> HvFeatures
fn clone(&self) -> HvFeatures
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HvFeatures
impl Debug for HvFeatures
source§impl Default for HvFeatures
impl Default for HvFeatures
source§impl From<HvFeatures> for u128
impl From<HvFeatures> for u128
source§fn from(v: HvFeatures) -> u128
fn from(v: HvFeatures) -> u128
source§impl From<u128> for HvFeatures
impl From<u128> for HvFeatures
impl Copy for HvFeatures
Auto Trait Implementations§
impl Freeze for HvFeatures
impl RefUnwindSafe for HvFeatures
impl Send for HvFeatures
impl Sync for HvFeatures
impl Unpin for HvFeatures
impl UnwindSafe for HvFeatures
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)