Struct hvdef::HvHardwareFeatures
source · pub struct HvHardwareFeatures(/* private fields */);
Implementations§
source§impl HvHardwareFeatures
impl HvHardwareFeatures
sourcepub const fn apic_overlay_assist_in_use(&self) -> bool
pub const fn apic_overlay_assist_in_use(&self) -> bool
Bits: 0..1
sourcepub const fn with_apic_overlay_assist_in_use(self, value: bool) -> Self
pub const fn with_apic_overlay_assist_in_use(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_apic_overlay_assist_in_use(&mut self, value: bool)
pub fn set_apic_overlay_assist_in_use(&mut self, value: bool)
Bits: 0..1
sourcepub const fn msr_bitmaps_in_use(&self) -> bool
pub const fn msr_bitmaps_in_use(&self) -> bool
Bits: 1..2
sourcepub const fn with_msr_bitmaps_in_use(self, value: bool) -> Self
pub const fn with_msr_bitmaps_in_use(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_msr_bitmaps_in_use(&mut self, value: bool)
pub fn set_msr_bitmaps_in_use(&mut self, value: bool)
Bits: 1..2
sourcepub const fn architectural_performance_counters_in_use(&self) -> bool
pub const fn architectural_performance_counters_in_use(&self) -> bool
Bits: 2..3
sourcepub const fn with_architectural_performance_counters_in_use(
self,
value: bool,
) -> Self
pub const fn with_architectural_performance_counters_in_use( self, value: bool, ) -> Self
Bits: 2..3
sourcepub fn set_architectural_performance_counters_in_use(&mut self, value: bool)
pub fn set_architectural_performance_counters_in_use(&mut self, value: bool)
Bits: 2..3
sourcepub const fn second_level_address_translation_in_use(&self) -> bool
pub const fn second_level_address_translation_in_use(&self) -> bool
Bits: 3..4
sourcepub const fn with_second_level_address_translation_in_use(
self,
value: bool,
) -> Self
pub const fn with_second_level_address_translation_in_use( self, value: bool, ) -> Self
Bits: 3..4
sourcepub fn set_second_level_address_translation_in_use(&mut self, value: bool)
pub fn set_second_level_address_translation_in_use(&mut self, value: bool)
Bits: 3..4
sourcepub const fn dma_remapping_in_use(&self) -> bool
pub const fn dma_remapping_in_use(&self) -> bool
Bits: 4..5
sourcepub const fn with_dma_remapping_in_use(self, value: bool) -> Self
pub const fn with_dma_remapping_in_use(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_dma_remapping_in_use(&mut self, value: bool)
pub fn set_dma_remapping_in_use(&mut self, value: bool)
Bits: 4..5
sourcepub const fn interrupt_remapping_in_use(&self) -> bool
pub const fn interrupt_remapping_in_use(&self) -> bool
Bits: 5..6
sourcepub const fn with_interrupt_remapping_in_use(self, value: bool) -> Self
pub const fn with_interrupt_remapping_in_use(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_interrupt_remapping_in_use(&mut self, value: bool)
pub fn set_interrupt_remapping_in_use(&mut self, value: bool)
Bits: 5..6
sourcepub const fn memory_patrol_scrubber_present(&self) -> bool
pub const fn memory_patrol_scrubber_present(&self) -> bool
Bits: 6..7
sourcepub const fn with_memory_patrol_scrubber_present(self, value: bool) -> Self
pub const fn with_memory_patrol_scrubber_present(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_memory_patrol_scrubber_present(&mut self, value: bool)
pub fn set_memory_patrol_scrubber_present(&mut self, value: bool)
Bits: 6..7
sourcepub const fn dma_protection_in_use(&self) -> bool
pub const fn dma_protection_in_use(&self) -> bool
Bits: 7..8
sourcepub const fn with_dma_protection_in_use(self, value: bool) -> Self
pub const fn with_dma_protection_in_use(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_dma_protection_in_use(&mut self, value: bool)
pub fn set_dma_protection_in_use(&mut self, value: bool)
Bits: 7..8
sourcepub const fn hpet_requested(&self) -> bool
pub const fn hpet_requested(&self) -> bool
Bits: 8..9
sourcepub const fn with_hpet_requested(self, value: bool) -> Self
pub const fn with_hpet_requested(self, value: bool) -> Self
Bits: 8..9
sourcepub fn set_hpet_requested(&mut self, value: bool)
pub fn set_hpet_requested(&mut self, value: bool)
Bits: 8..9
sourcepub const fn synthetic_timers_volatile(&self) -> bool
pub const fn synthetic_timers_volatile(&self) -> bool
Bits: 9..10
sourcepub const fn with_synthetic_timers_volatile(self, value: bool) -> Self
pub const fn with_synthetic_timers_volatile(self, value: bool) -> Self
Bits: 9..10
sourcepub fn set_synthetic_timers_volatile(&mut self, value: bool)
pub fn set_synthetic_timers_volatile(&mut self, value: bool)
Bits: 9..10
sourcepub const fn hypervisor_level(&self) -> u32
pub const fn hypervisor_level(&self) -> u32
Bits: 10..14
sourcepub const fn with_hypervisor_level(self, value: u32) -> Self
pub const fn with_hypervisor_level(self, value: u32) -> Self
Bits: 10..14
sourcepub fn set_hypervisor_level(&mut self, value: u32)
pub fn set_hypervisor_level(&mut self, value: u32)
Bits: 10..14
sourcepub const fn physical_destination_mode_required(&self) -> bool
pub const fn physical_destination_mode_required(&self) -> bool
Bits: 14..15
sourcepub const fn with_physical_destination_mode_required(self, value: bool) -> Self
pub const fn with_physical_destination_mode_required(self, value: bool) -> Self
Bits: 14..15
sourcepub fn set_physical_destination_mode_required(&mut self, value: bool)
pub fn set_physical_destination_mode_required(&mut self, value: bool)
Bits: 14..15
sourcepub const fn use_vmfunc_for_alias_map_switch(&self) -> bool
pub const fn use_vmfunc_for_alias_map_switch(&self) -> bool
Bits: 15..16
sourcepub const fn with_use_vmfunc_for_alias_map_switch(self, value: bool) -> Self
pub const fn with_use_vmfunc_for_alias_map_switch(self, value: bool) -> Self
Bits: 15..16
sourcepub fn set_use_vmfunc_for_alias_map_switch(&mut self, value: bool)
pub fn set_use_vmfunc_for_alias_map_switch(&mut self, value: bool)
Bits: 15..16
sourcepub const fn hv_register_for_memory_zeroing_supported(&self) -> bool
pub const fn hv_register_for_memory_zeroing_supported(&self) -> bool
Bits: 16..17
sourcepub const fn with_hv_register_for_memory_zeroing_supported(
self,
value: bool,
) -> Self
pub const fn with_hv_register_for_memory_zeroing_supported( self, value: bool, ) -> Self
Bits: 16..17
sourcepub fn set_hv_register_for_memory_zeroing_supported(&mut self, value: bool)
pub fn set_hv_register_for_memory_zeroing_supported(&mut self, value: bool)
Bits: 16..17
sourcepub const fn unrestricted_guest_supported(&self) -> bool
pub const fn unrestricted_guest_supported(&self) -> bool
Bits: 17..18
sourcepub const fn with_unrestricted_guest_supported(self, value: bool) -> Self
pub const fn with_unrestricted_guest_supported(self, value: bool) -> Self
Bits: 17..18
sourcepub fn set_unrestricted_guest_supported(&mut self, value: bool)
pub fn set_unrestricted_guest_supported(&mut self, value: bool)
Bits: 17..18
sourcepub const fn rdt_afeatures_supported(&self) -> bool
pub const fn rdt_afeatures_supported(&self) -> bool
Bits: 18..19
sourcepub const fn with_rdt_afeatures_supported(self, value: bool) -> Self
pub const fn with_rdt_afeatures_supported(self, value: bool) -> Self
Bits: 18..19
sourcepub fn set_rdt_afeatures_supported(&mut self, value: bool)
pub fn set_rdt_afeatures_supported(&mut self, value: bool)
Bits: 18..19
sourcepub const fn rdt_mfeatures_supported(&self) -> bool
pub const fn rdt_mfeatures_supported(&self) -> bool
Bits: 19..20
sourcepub const fn with_rdt_mfeatures_supported(self, value: bool) -> Self
pub const fn with_rdt_mfeatures_supported(self, value: bool) -> Self
Bits: 19..20
sourcepub fn set_rdt_mfeatures_supported(&mut self, value: bool)
pub fn set_rdt_mfeatures_supported(&mut self, value: bool)
Bits: 19..20
sourcepub const fn child_perfmon_pmu_supported(&self) -> bool
pub const fn child_perfmon_pmu_supported(&self) -> bool
Bits: 20..21
sourcepub const fn with_child_perfmon_pmu_supported(self, value: bool) -> Self
pub const fn with_child_perfmon_pmu_supported(self, value: bool) -> Self
Bits: 20..21
sourcepub fn set_child_perfmon_pmu_supported(&mut self, value: bool)
pub fn set_child_perfmon_pmu_supported(&mut self, value: bool)
Bits: 20..21
sourcepub const fn child_perfmon_lbr_supported(&self) -> bool
pub const fn child_perfmon_lbr_supported(&self) -> bool
Bits: 21..22
sourcepub const fn with_child_perfmon_lbr_supported(self, value: bool) -> Self
pub const fn with_child_perfmon_lbr_supported(self, value: bool) -> Self
Bits: 21..22
sourcepub fn set_child_perfmon_lbr_supported(&mut self, value: bool)
pub fn set_child_perfmon_lbr_supported(&mut self, value: bool)
Bits: 21..22
sourcepub const fn child_perfmon_ipt_supported(&self) -> bool
pub const fn child_perfmon_ipt_supported(&self) -> bool
Bits: 22..23
sourcepub const fn with_child_perfmon_ipt_supported(self, value: bool) -> Self
pub const fn with_child_perfmon_ipt_supported(self, value: bool) -> Self
Bits: 22..23
sourcepub fn set_child_perfmon_ipt_supported(&mut self, value: bool)
pub fn set_child_perfmon_ipt_supported(&mut self, value: bool)
Bits: 22..23
sourcepub const fn apic_emulation_supported(&self) -> bool
pub const fn apic_emulation_supported(&self) -> bool
Bits: 23..24
sourcepub const fn with_apic_emulation_supported(self, value: bool) -> Self
pub const fn with_apic_emulation_supported(self, value: bool) -> Self
Bits: 23..24
sourcepub fn set_apic_emulation_supported(&mut self, value: bool)
pub fn set_apic_emulation_supported(&mut self, value: bool)
Bits: 23..24
sourcepub const fn child_x2_apic_recommended(&self) -> bool
pub const fn child_x2_apic_recommended(&self) -> bool
Bits: 24..25
sourcepub const fn with_child_x2_apic_recommended(self, value: bool) -> Self
pub const fn with_child_x2_apic_recommended(self, value: bool) -> Self
Bits: 24..25
sourcepub fn set_child_x2_apic_recommended(&mut self, value: bool)
pub fn set_child_x2_apic_recommended(&mut self, value: bool)
Bits: 24..25
sourcepub const fn hardware_watchdog_reserved(&self) -> bool
pub const fn hardware_watchdog_reserved(&self) -> bool
Bits: 25..26
sourcepub const fn with_hardware_watchdog_reserved(self, value: bool) -> Self
pub const fn with_hardware_watchdog_reserved(self, value: bool) -> Self
Bits: 25..26
sourcepub fn set_hardware_watchdog_reserved(&mut self, value: bool)
pub fn set_hardware_watchdog_reserved(&mut self, value: bool)
Bits: 25..26
sourcepub const fn device_access_tracking_supported(&self) -> bool
pub const fn device_access_tracking_supported(&self) -> bool
Bits: 26..27
sourcepub const fn with_device_access_tracking_supported(self, value: bool) -> Self
pub const fn with_device_access_tracking_supported(self, value: bool) -> Self
Bits: 26..27
sourcepub fn set_device_access_tracking_supported(&mut self, value: bool)
pub fn set_device_access_tracking_supported(&mut self, value: bool)
Bits: 26..27
sourcepub const fn hardware_gpa_access_tracking_supported(&self) -> bool
pub const fn hardware_gpa_access_tracking_supported(&self) -> bool
Bits: 27..28
sourcepub const fn with_hardware_gpa_access_tracking_supported(
self,
value: bool,
) -> Self
pub const fn with_hardware_gpa_access_tracking_supported( self, value: bool, ) -> Self
Bits: 27..28
sourcepub fn set_hardware_gpa_access_tracking_supported(&mut self, value: bool)
pub fn set_hardware_gpa_access_tracking_supported(&mut self, value: bool)
Bits: 27..28
sourcepub const fn device_domain_input_width(&self) -> u8
pub const fn device_domain_input_width(&self) -> u8
Bits: 32..40
sourcepub const fn with_device_domain_input_width(self, value: u8) -> Self
pub const fn with_device_domain_input_width(self, value: u8) -> Self
Bits: 32..40
sourcepub fn set_device_domain_input_width(&mut self, value: u8)
pub fn set_device_domain_input_width(&mut self, value: u8)
Bits: 32..40
Trait Implementations§
source§impl Clone for HvHardwareFeatures
impl Clone for HvHardwareFeatures
source§fn clone(&self) -> HvHardwareFeatures
fn clone(&self) -> HvHardwareFeatures
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HvHardwareFeatures
impl Debug for HvHardwareFeatures
source§impl Default for HvHardwareFeatures
impl Default for HvHardwareFeatures
source§impl From<HvHardwareFeatures> for u128
impl From<HvHardwareFeatures> for u128
source§fn from(v: HvHardwareFeatures) -> u128
fn from(v: HvHardwareFeatures) -> u128
source§impl From<u128> for HvHardwareFeatures
impl From<u128> for HvHardwareFeatures
impl Copy for HvHardwareFeatures
Auto Trait Implementations§
impl Freeze for HvHardwareFeatures
impl RefUnwindSafe for HvHardwareFeatures
impl Send for HvHardwareFeatures
impl Sync for HvHardwareFeatures
impl Unpin for HvHardwareFeatures
impl UnwindSafe for HvHardwareFeatures
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
)