Struct hvdef::HvEnlightenmentInformation

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

Implementations§

source§

impl HvEnlightenmentInformation

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 use_hypercall_for_address_space_switch(&self) -> bool

Bits: 0..1

source

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

Bits: 0..1

source

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

Bits: 0..1

source

pub const fn use_hypercall_for_local_flush(&self) -> bool

Bits: 1..2

source

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

Bits: 1..2

source

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

Bits: 1..2

source

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

Bits: 2..3

source

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

Bits: 2..3

source

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

Bits: 2..3

source

pub const fn use_apic_msrs(&self) -> bool

Bits: 3..4

source

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

Bits: 3..4

source

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

Bits: 3..4

source

pub const fn use_hv_register_for_reset(&self) -> bool

Bits: 4..5

source

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

Bits: 4..5

source

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

Bits: 4..5

source

pub const fn use_relaxed_timing(&self) -> bool

Bits: 5..6

source

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

Bits: 5..6

source

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

Bits: 5..6

source

pub const fn use_dma_remapping_deprecated(&self) -> bool

Bits: 6..7

source

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

Bits: 6..7

source

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

Bits: 6..7

source

pub const fn use_interrupt_remapping_deprecated(&self) -> bool

Bits: 7..8

source

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

Bits: 7..8

source

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

Bits: 7..8

source

pub const fn use_x2_apic_msrs(&self) -> bool

Bits: 8..9

source

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

Bits: 8..9

source

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

Bits: 8..9

source

pub const fn deprecate_auto_eoi(&self) -> bool

Bits: 9..10

source

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

Bits: 9..10

source

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

Bits: 9..10

source

pub const fn use_synthetic_cluster_ipi(&self) -> bool

Bits: 10..11

source

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

Bits: 10..11

source

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

Bits: 10..11

source

pub const fn use_ex_processor_masks(&self) -> bool

Bits: 11..12

source

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

Bits: 11..12

source

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

Bits: 11..12

source

pub const fn nested(&self) -> bool

Bits: 12..13

source

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

Bits: 12..13

source

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

Bits: 12..13

source

pub const fn use_int_for_mbec_system_calls(&self) -> bool

Bits: 13..14

source

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

Bits: 13..14

source

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

Bits: 13..14

source

pub const fn use_vmcs_enlightenments(&self) -> bool

Bits: 14..15

source

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

Bits: 14..15

source

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

Bits: 14..15

source

pub const fn use_synced_timeline(&self) -> bool

Bits: 15..16

source

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

Bits: 15..16

source

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

Bits: 15..16

source

pub const fn core_scheduler_requested(&self) -> bool

Bits: 16..17

source

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

Bits: 16..17

source

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

Bits: 16..17

source

pub const fn use_direct_local_flush_entire(&self) -> bool

Bits: 17..18

source

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

Bits: 17..18

source

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

Bits: 17..18

source

pub const fn no_non_architectural_core_sharing(&self) -> bool

Bits: 18..19

source

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

Bits: 18..19

source

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

Bits: 18..19

source

pub const fn use_x2_apic(&self) -> bool

Bits: 19..20

source

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

Bits: 19..20

source

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

Bits: 19..20

source

pub const fn restore_time_on_resume(&self) -> bool

Bits: 20..21

source

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

Bits: 20..21

source

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

Bits: 20..21

source

pub const fn use_hypercall_for_mmio_access(&self) -> bool

Bits: 21..22

source

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

Bits: 21..22

source

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

Bits: 21..22

source

pub const fn use_gpa_pinning_hypercall(&self) -> bool

Bits: 22..23

source

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

Bits: 22..23

source

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

Bits: 22..23

source

pub const fn wake_vps(&self) -> bool

Bits: 23..24

source

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

Bits: 23..24

source

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

Bits: 23..24

source

pub const fn long_spin_wait_count(&self) -> u32

Bits: 32..64

source

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

Bits: 32..64

source

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

Bits: 32..64

source

pub const fn implemented_physical_address_bits(&self) -> u32

Bits: 64..71

source

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

Bits: 64..71

source

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

Bits: 64..71

Trait Implementations§

source§

impl Clone for HvEnlightenmentInformation

source§

fn clone(&self) -> HvEnlightenmentInformation

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 HvEnlightenmentInformation

source§

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

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

impl Default for HvEnlightenmentInformation

source§

fn default() -> Self

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

impl From<HvEnlightenmentInformation> for u128

source§

fn from(v: HvEnlightenmentInformation) -> u128

Converts to this type from the input type.
source§

impl From<u128> for HvEnlightenmentInformation

source§

fn from(v: u128) -> Self

Converts to this type from the input type.
source§

impl Copy for HvEnlightenmentInformation

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.