Skip to main content

HvPartitionSyntheticProcessorFeatures

Struct HvPartitionSyntheticProcessorFeatures 

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

Synthetic processor features that control which Hyper-V enlightenments are exposed to a guest partition.

Implementations§

Source§

impl HvPartitionSyntheticProcessorFeatures

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

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

Convert from bits.

Source

pub const fn into_bits(self) -> u64

Convert into bits.

Source

pub const fn hypervisor_present(&self) -> bool

Bits: 0..1

Source

pub const fn with_hypervisor_present_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 0..1

Source

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

Bits: 0..1

Source

pub const fn set_hypervisor_present(&mut self, value: bool)

Bits: 0..1

Source

pub const fn set_hypervisor_present_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 0..1

Source

pub const fn hv1(&self) -> bool

Bits: 1..2

Source

pub const fn with_hv1_checked(self, value: bool) -> Result<Self, ()>

Bits: 1..2

Source

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

Bits: 1..2

Source

pub const fn set_hv1(&mut self, value: bool)

Bits: 1..2

Source

pub const fn set_hv1_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 1..2

Source

pub const fn access_vp_run_time_reg(&self) -> bool

Bits: 2..3

Source

pub const fn with_access_vp_run_time_reg_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 2..3

Source

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

Bits: 2..3

Source

pub const fn set_access_vp_run_time_reg(&mut self, value: bool)

Bits: 2..3

Source

pub const fn set_access_vp_run_time_reg_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 2..3

Source

pub const fn access_partition_reference_counter(&self) -> bool

Bits: 3..4

Source

pub const fn with_access_partition_reference_counter_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 3..4

Source

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

Bits: 3..4

Source

pub const fn set_access_partition_reference_counter(&mut self, value: bool)

Bits: 3..4

Source

pub const fn set_access_partition_reference_counter_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 3..4

Source

pub const fn access_synic_regs(&self) -> bool

Bits: 4..5

Source

pub const fn with_access_synic_regs_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 4..5

Source

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

Bits: 4..5

Source

pub const fn set_access_synic_regs(&mut self, value: bool)

Bits: 4..5

Source

pub const fn set_access_synic_regs_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 4..5

Source

pub const fn access_synthetic_timer_regs(&self) -> bool

Bits: 5..6

Source

pub const fn with_access_synthetic_timer_regs_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 5..6

Source

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

Bits: 5..6

Source

pub const fn set_access_synthetic_timer_regs(&mut self, value: bool)

Bits: 5..6

Source

pub const fn set_access_synthetic_timer_regs_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 5..6

Source

pub const fn access_intr_ctrl_regs(&self) -> bool

Bits: 6..7

Source

pub const fn with_access_intr_ctrl_regs_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 6..7

Source

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

Bits: 6..7

Source

pub const fn set_access_intr_ctrl_regs(&mut self, value: bool)

Bits: 6..7

Source

pub const fn set_access_intr_ctrl_regs_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 6..7

Source

pub const fn access_hypercall_regs(&self) -> bool

Bits: 7..8

Source

pub const fn with_access_hypercall_regs_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 7..8

Source

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

Bits: 7..8

Source

pub const fn set_access_hypercall_regs(&mut self, value: bool)

Bits: 7..8

Source

pub const fn set_access_hypercall_regs_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 7..8

Source

pub const fn access_vp_index(&self) -> bool

Bits: 8..9

Source

pub const fn with_access_vp_index_checked(self, value: bool) -> Result<Self, ()>

Bits: 8..9

Source

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

Bits: 8..9

Source

pub const fn set_access_vp_index(&mut self, value: bool)

Bits: 8..9

Source

pub const fn set_access_vp_index_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 8..9

Source

pub const fn access_partition_reference_tsc(&self) -> bool

Bits: 9..10

Source

pub const fn with_access_partition_reference_tsc_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 9..10

Source

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

Bits: 9..10

Source

pub const fn set_access_partition_reference_tsc(&mut self, value: bool)

Bits: 9..10

Source

pub const fn set_access_partition_reference_tsc_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 9..10

Source

pub const fn access_guest_idle_reg(&self) -> bool

Bits: 10..11

Source

pub const fn with_access_guest_idle_reg_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 10..11

Source

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

Bits: 10..11

Source

pub const fn set_access_guest_idle_reg(&mut self, value: bool)

Bits: 10..11

Source

pub const fn set_access_guest_idle_reg_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 10..11

Source

pub const fn access_frequency_regs(&self) -> bool

Bits: 11..12

Source

pub const fn with_access_frequency_regs_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 11..12

Source

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

Bits: 11..12

Source

pub const fn set_access_frequency_regs(&mut self, value: bool)

Bits: 11..12

Source

pub const fn set_access_frequency_regs_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 11..12

Source

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

Bits: 15..16

Source

pub const fn with_enable_extended_gva_ranges_for_flush_virtual_address_list_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 15..16

Source

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

Bits: 15..16

Source

pub const fn set_enable_extended_gva_ranges_for_flush_virtual_address_list( &mut self, value: bool, )

Bits: 15..16

Source

pub const fn set_enable_extended_gva_ranges_for_flush_virtual_address_list_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 15..16

Source

pub const fn fast_hypercall_output(&self) -> bool

Bits: 18..19

Source

pub const fn with_fast_hypercall_output_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 18..19

Source

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

Bits: 18..19

Source

pub const fn set_fast_hypercall_output(&mut self, value: bool)

Bits: 18..19

Source

pub const fn set_fast_hypercall_output_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 18..19

Source

pub const fn start_virtual_processor(&self) -> bool

Bits: 20..21

Source

pub const fn with_start_virtual_processor_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 20..21

Source

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

Bits: 20..21

Source

pub const fn set_start_virtual_processor(&mut self, value: bool)

Bits: 20..21

Source

pub const fn set_start_virtual_processor_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 20..21

Source

pub const fn direct_synthetic_timers(&self) -> bool

Bits: 22..23

Source

pub const fn with_direct_synthetic_timers_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 22..23

Source

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

Bits: 22..23

Source

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

Bits: 22..23

Source

pub const fn set_direct_synthetic_timers_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 22..23

Source

pub const fn extended_processor_masks(&self) -> bool

Bits: 24..25

Source

pub const fn with_extended_processor_masks_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 24..25

Source

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

Bits: 24..25

Source

pub const fn set_extended_processor_masks(&mut self, value: bool)

Bits: 24..25

Source

pub const fn set_extended_processor_masks_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 24..25

Source

pub const fn tb_flush_hypercalls(&self) -> bool

Bits: 25..26

Source

pub const fn with_tb_flush_hypercalls_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 25..26

Source

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

Bits: 25..26

Source

pub const fn set_tb_flush_hypercalls(&mut self, value: bool)

Bits: 25..26

Source

pub const fn set_tb_flush_hypercalls_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 25..26

Source

pub const fn synthetic_cluster_ipi(&self) -> bool

Bits: 26..27

Source

pub const fn with_synthetic_cluster_ipi_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 26..27

Source

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

Bits: 26..27

Source

pub const fn set_synthetic_cluster_ipi(&mut self, value: bool)

Bits: 26..27

Source

pub const fn set_synthetic_cluster_ipi_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 26..27

Source

pub const fn notify_long_spin_wait(&self) -> bool

Bits: 27..28

Source

pub const fn with_notify_long_spin_wait_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 27..28

Source

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

Bits: 27..28

Source

pub const fn set_notify_long_spin_wait(&mut self, value: bool)

Bits: 27..28

Source

pub const fn set_notify_long_spin_wait_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 27..28

Source

pub const fn query_numa_distance(&self) -> bool

Bits: 28..29

Source

pub const fn with_query_numa_distance_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 28..29

Source

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

Bits: 28..29

Source

pub const fn set_query_numa_distance(&mut self, value: bool)

Bits: 28..29

Source

pub const fn set_query_numa_distance_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 28..29

Source

pub const fn signal_events(&self) -> bool

Bits: 29..30

Source

pub const fn with_signal_events_checked(self, value: bool) -> Result<Self, ()>

Bits: 29..30

Source

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

Bits: 29..30

Source

pub const fn set_signal_events(&mut self, value: bool)

Bits: 29..30

Source

pub const fn set_signal_events_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 29..30

Source

pub const fn retarget_device_interrupt(&self) -> bool

Bits: 30..31

Source

pub const fn with_retarget_device_interrupt_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 30..31

Source

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

Bits: 30..31

Source

pub const fn set_retarget_device_interrupt(&mut self, value: bool)

Bits: 30..31

Source

pub const fn set_retarget_device_interrupt_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 30..31

Source

pub const fn restore_time(&self) -> bool

Bits: 31..32

Source

pub const fn with_restore_time_checked(self, value: bool) -> Result<Self, ()>

Bits: 31..32

Source

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

Bits: 31..32

Source

pub const fn set_restore_time(&mut self, value: bool)

Bits: 31..32

Source

pub const fn set_restore_time_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 31..32

Source

pub const fn enlightened_vmcs(&self) -> bool

Bits: 32..33

Source

pub const fn with_enlightened_vmcs_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 32..33

Source

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

Bits: 32..33

Source

pub const fn set_enlightened_vmcs(&mut self, value: bool)

Bits: 32..33

Source

pub const fn set_enlightened_vmcs_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 32..33

Source

pub const fn nested_debug_ctl(&self) -> bool

Bits: 33..34

Source

pub const fn with_nested_debug_ctl_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 33..34

Source

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

Bits: 33..34

Source

pub const fn set_nested_debug_ctl(&mut self, value: bool)

Bits: 33..34

Source

pub const fn set_nested_debug_ctl_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 33..34

Source

pub const fn synthetic_time_unhalted_timer(&self) -> bool

Bits: 34..35

Source

pub const fn with_synthetic_time_unhalted_timer_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 34..35

Source

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

Bits: 34..35

Source

pub const fn set_synthetic_time_unhalted_timer(&mut self, value: bool)

Bits: 34..35

Source

pub const fn set_synthetic_time_unhalted_timer_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 34..35

Source

pub const fn idle_spec_ctrl(&self) -> bool

Bits: 35..36

Source

pub const fn with_idle_spec_ctrl_checked(self, value: bool) -> Result<Self, ()>

Bits: 35..36

Source

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

Bits: 35..36

Source

pub const fn set_idle_spec_ctrl(&mut self, value: bool)

Bits: 35..36

Source

pub const fn set_idle_spec_ctrl_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 35..36

Source

pub const fn wake_vps(&self) -> bool

Bits: 37..38

Source

pub const fn with_wake_vps_checked(self, value: bool) -> Result<Self, ()>

Bits: 37..38

Source

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

Bits: 37..38

Source

pub const fn set_wake_vps(&mut self, value: bool)

Bits: 37..38

Source

pub const fn set_wake_vps_checked(&mut self, value: bool) -> Result<(), ()>

Bits: 37..38

Source

pub const fn access_vp_regs(&self) -> bool

Bits: 38..39

Source

pub const fn with_access_vp_regs_checked(self, value: bool) -> Result<Self, ()>

Bits: 38..39

Source

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

Bits: 38..39

Source

pub const fn set_access_vp_regs(&mut self, value: bool)

Bits: 38..39

Source

pub const fn set_access_vp_regs_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 38..39

Source

pub const fn management_vtl_synic_support(&self) -> bool

Bits: 40..41

Source

pub const fn with_management_vtl_synic_support_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 40..41

Source

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

Bits: 40..41

Source

pub const fn set_management_vtl_synic_support(&mut self, value: bool)

Bits: 40..41

Source

pub const fn set_management_vtl_synic_support_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 40..41

Source

pub const fn proxy_interrupt_doorbell_support(&self) -> bool

Bits: 41..42

Source

pub const fn with_proxy_interrupt_doorbell_support_checked( self, value: bool, ) -> Result<Self, ()>

Bits: 41..42

Source

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

Bits: 41..42

Source

pub const fn set_proxy_interrupt_doorbell_support(&mut self, value: bool)

Bits: 41..42

Source

pub const fn set_proxy_interrupt_doorbell_support_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 41..42

Source

pub const fn mmio_hypercalls(&self) -> bool

Bits: 43..44

Source

pub const fn with_mmio_hypercalls_checked(self, value: bool) -> Result<Self, ()>

Bits: 43..44

Source

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

Bits: 43..44

Source

pub const fn set_mmio_hypercalls(&mut self, value: bool)

Bits: 43..44

Source

pub const fn set_mmio_hypercalls_checked( &mut self, value: bool, ) -> Result<(), ()>

Bits: 43..44

Trait Implementations§

Source§

impl Clone for HvPartitionSyntheticProcessorFeatures

Source§

fn clone(&self) -> HvPartitionSyntheticProcessorFeatures

Returns a duplicate 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 HvPartitionSyntheticProcessorFeatures

Source§

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

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

impl Default for HvPartitionSyntheticProcessorFeatures

Source§

fn default() -> Self

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

impl From<HvPartitionSyntheticProcessorFeatures> for u64

Source§

fn from(v: HvPartitionSyntheticProcessorFeatures) -> u64

Converts to this type from the input type.
Source§

impl From<u64> for HvPartitionSyntheticProcessorFeatures

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl Copy for HvPartitionSyntheticProcessorFeatures

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.