Struct x86defs::vmx::SecondaryProcessorControls

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

Implementations§

source§

impl SecondaryProcessorControls

source

pub const fn new() -> Self

Creates a new default initialized bitfield.

source

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

Convert from bits.

source

pub const fn into_bits(self) -> u32

Convert into bits.

source

pub const fn virtualize_apic_accesses(&self) -> bool

Bits: 0..1

source

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

Bits: 0..1

source

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

Bits: 0..1

source

pub const fn enable_ept(&self) -> bool

Bits: 1..2

source

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

Bits: 1..2

source

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

Bits: 1..2

source

pub const fn descriptor_table_exiting(&self) -> bool

Bits: 2..3

source

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

Bits: 2..3

source

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

Bits: 2..3

source

pub const fn enable_rdtscp(&self) -> bool

Bits: 3..4

source

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

Bits: 3..4

source

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

Bits: 3..4

source

pub const fn virtualize_x2apic_mode(&self) -> bool

Bits: 4..5

source

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

Bits: 4..5

source

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

Bits: 4..5

source

pub const fn enable_vpid(&self) -> bool

Bits: 5..6

source

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

Bits: 5..6

source

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

Bits: 5..6

source

pub const fn wbinvd_exiting(&self) -> bool

Bits: 6..7

source

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

Bits: 6..7

source

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

Bits: 6..7

source

pub const fn unrestricted_guest(&self) -> bool

Bits: 7..8

source

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

Bits: 7..8

source

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

Bits: 7..8

source

pub const fn apic_register_virtualization(&self) -> bool

Bits: 8..9

source

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

Bits: 8..9

source

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

Bits: 8..9

source

pub const fn virtual_interrupt_delivery(&self) -> bool

Bits: 9..10

source

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

Bits: 9..10

source

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

Bits: 9..10

source

pub const fn pause_loop_exiting(&self) -> bool

Bits: 10..11

source

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

Bits: 10..11

source

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

Bits: 10..11

source

pub const fn rdrand_exiting(&self) -> bool

Bits: 11..12

source

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

Bits: 11..12

source

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

Bits: 11..12

source

pub const fn enable_invpcid(&self) -> bool

Bits: 12..13

source

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

Bits: 12..13

source

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

Bits: 12..13

source

pub const fn enable_vmfunc(&self) -> bool

Bits: 13..14

source

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

Bits: 13..14

source

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

Bits: 13..14

source

pub const fn vmcs_shadowing(&self) -> bool

Bits: 14..15

source

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

Bits: 14..15

source

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

Bits: 14..15

source

pub const fn enable_encls_exiting(&self) -> bool

Bits: 15..16

source

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

Bits: 15..16

source

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

Bits: 15..16

source

pub const fn rdseed_exiting(&self) -> bool

Bits: 16..17

source

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

Bits: 16..17

source

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

Bits: 16..17

source

pub const fn enable_pml(&self) -> bool

Bits: 17..18

source

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

Bits: 17..18

source

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

Bits: 17..18

source

pub const fn ept_violation_ve(&self) -> bool

Bits: 18..19

source

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

Bits: 18..19

source

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

Bits: 18..19

source

pub const fn conceal_vmx_from_pt(&self) -> bool

Bits: 19..20

source

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

Bits: 19..20

source

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

Bits: 19..20

source

pub const fn enable_xsaves_xrstors(&self) -> bool

Bits: 20..21

source

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

Bits: 20..21

source

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

Bits: 20..21

source

pub const fn pasid_translation(&self) -> bool

Bits: 21..22

source

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

Bits: 21..22

source

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

Bits: 21..22

source

pub const fn mode_based_execute_control(&self) -> bool

Bits: 22..23

source

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

Bits: 22..23

source

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

Bits: 22..23

source

pub const fn sub_page_write_permissions(&self) -> bool

Bits: 23..24

source

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

Bits: 23..24

source

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

Bits: 23..24

source

pub const fn pt_uses_guest_physical_addresses(&self) -> bool

Bits: 24..25

source

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

Bits: 24..25

source

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

Bits: 24..25

source

pub const fn use_tsc_scaling(&self) -> bool

Bits: 25..26

source

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

Bits: 25..26

source

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

Bits: 25..26

source

pub const fn enable_user_wait_and_pause(&self) -> bool

Bits: 26..27

source

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

Bits: 26..27

source

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

Bits: 26..27

source

pub const fn enable_pconfig(&self) -> bool

Bits: 27..28

source

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

Bits: 27..28

source

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

Bits: 27..28

source

pub const fn enable_enclv_exiting(&self) -> bool

Bits: 28..29

source

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

Bits: 28..29

source

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

Bits: 28..29

source

pub const fn vmm_bus_lock_detection(&self) -> bool

Bits: 30..31

source

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

Bits: 30..31

source

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

Bits: 30..31

source

pub const fn instruction_timeout(&self) -> bool

Bits: 31..32

source

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

Bits: 31..32

source

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

Bits: 31..32

Trait Implementations§

source§

impl Clone for SecondaryProcessorControls

source§

fn clone(&self) -> SecondaryProcessorControls

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 SecondaryProcessorControls

source§

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

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

impl Default for SecondaryProcessorControls

source§

fn default() -> Self

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

impl From<SecondaryProcessorControls> for u32

source§

fn from(v: SecondaryProcessorControls) -> u32

Converts to this type from the input type.
source§

impl From<u32> for SecondaryProcessorControls

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for SecondaryProcessorControls

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.