[][src]Struct x86::vmx::vmcs::control::SecondaryControls

pub struct SecondaryControls { /* fields omitted */ }

Secondary processor-based VM-execution controls.

A set of bitmask flags useful when setting up SECONDARY_PROCBASED_EXEC_CONTROLS VMCS field.

See Intel SDM, Volume 3C, Section 24.6.2, Table 24-7.

Methods

impl SecondaryControls[src]

pub const VIRTUALIZE_APIC: SecondaryControls[src]

Virtualize APIC accesses.

pub const ENABLE_EPT: SecondaryControls[src]

Enable EPT.

pub const DTABLE_EXITING: SecondaryControls[src]

Descriptor-table exiting.

pub const ENABLE_RDTSCP: SecondaryControls[src]

Enable RDTSCP.

pub const VIRTUALIZE_X2APIC: SecondaryControls[src]

Virtualize x2APIC mode.

pub const ENABLE_VPID: SecondaryControls[src]

Enable VPID.

pub const WBINVD_EXITING: SecondaryControls[src]

WBINVD exiting.

pub const UNRESTRICTED_GUEST: SecondaryControls[src]

Unrestricted guest.

pub const VIRTUALIZE_APIC_REGISTER: SecondaryControls[src]

APIC-register virtualization.

pub const VIRTUAL_INTERRUPT_DELIVERY: SecondaryControls[src]

Virtual-interrupt delivery.

pub const PAUSE_LOOP_EXITING: SecondaryControls[src]

PAUSE-loop exiting.

pub const RDRAND_EXITING: SecondaryControls[src]

RDRAND exiting.

pub const ENABLE_INVPCID: SecondaryControls[src]

Enable INVPCID.

pub const ENABLE_VM_FUNCTIONS: SecondaryControls[src]

Enable VM functions.

pub const VMCS_SHADOWING: SecondaryControls[src]

VMCS shadowing.

pub const ENCLS_EXITING: SecondaryControls[src]

Enable ENCLS exiting.

pub const RDSEED_EXITING: SecondaryControls[src]

RDSEED exiting.

pub const ENABLE_PML: SecondaryControls[src]

Enable PML.

pub const EPT_VIOLATION_VE: SecondaryControls[src]

EPT-violation #VE.

pub const CONCEAL_VMX_FROM_PT: SecondaryControls[src]

Conceal VMX from PT.

pub const ENABLE_XSAVES_XRSTORS: SecondaryControls[src]

Enable XSAVES/XRSTORS.

pub const MODE_BASED_EPT: SecondaryControls[src]

Mode-based execute control for EPT.

pub const SUB_PAGE_EPT: SecondaryControls[src]

Sub-page write permissions for EPT.

pub const INTEL_PT_GUEST_PHYSICAL: SecondaryControls[src]

Intel PT uses guest physical addresses.

pub const USE_TSC_SCALING: SecondaryControls[src]

Use TSC scaling.

pub const ENABLE_USER_WAIT_PAUSE: SecondaryControls[src]

Enable user wait and pause.

pub const ENCLV_EXITING: SecondaryControls[src]

Enable ENCLV exiting.

pub const fn empty() -> SecondaryControls[src]

Returns an empty set of flags

pub const fn all() -> SecondaryControls[src]

Returns the set containing all flags.

pub const fn bits(&self) -> u32[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u32) -> Option<SecondaryControls>[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

pub const fn from_bits_truncate(bits: u32) -> SecondaryControls[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

pub const unsafe fn from_bits_unchecked(bits: u32) -> SecondaryControls[src]

Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).

pub const fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub const fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub const fn intersects(&self, other: SecondaryControls) -> bool[src]

Returns true if there are flags common to both self and other.

pub const fn contains(&self, other: SecondaryControls) -> bool[src]

Returns true all of the flags in other are contained within self.

pub fn insert(&mut self, other: SecondaryControls)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: SecondaryControls)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: SecondaryControls)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: SecondaryControls, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for SecondaryControls[src]

impl BitAnd<SecondaryControls> for SecondaryControls[src]

type Output = SecondaryControls

The resulting type after applying the & operator.

fn bitand(self, other: SecondaryControls) -> SecondaryControls[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<SecondaryControls> for SecondaryControls[src]

fn bitand_assign(&mut self, other: SecondaryControls)[src]

Disables all flags disabled in the set.

impl BitOr<SecondaryControls> for SecondaryControls[src]

type Output = SecondaryControls

The resulting type after applying the | operator.

fn bitor(self, other: SecondaryControls) -> SecondaryControls[src]

Returns the union of the two sets of flags.

impl BitOrAssign<SecondaryControls> for SecondaryControls[src]

fn bitor_assign(&mut self, other: SecondaryControls)[src]

Adds the set of flags.

impl BitXor<SecondaryControls> for SecondaryControls[src]

type Output = SecondaryControls

The resulting type after applying the ^ operator.

fn bitxor(self, other: SecondaryControls) -> SecondaryControls[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<SecondaryControls> for SecondaryControls[src]

fn bitxor_assign(&mut self, other: SecondaryControls)[src]

Toggles the set of flags.

impl Clone for SecondaryControls[src]

impl Copy for SecondaryControls[src]

impl Debug for SecondaryControls[src]

impl Eq for SecondaryControls[src]

impl Extend<SecondaryControls> for SecondaryControls[src]

impl FromIterator<SecondaryControls> for SecondaryControls[src]

impl Hash for SecondaryControls[src]

impl LowerHex for SecondaryControls[src]

impl Not for SecondaryControls[src]

type Output = SecondaryControls

The resulting type after applying the ! operator.

fn not(self) -> SecondaryControls[src]

Returns the complement of this set of flags.

impl Octal for SecondaryControls[src]

impl Ord for SecondaryControls[src]

impl PartialEq<SecondaryControls> for SecondaryControls[src]

impl PartialOrd<SecondaryControls> for SecondaryControls[src]

impl StructuralEq for SecondaryControls[src]

impl StructuralPartialEq for SecondaryControls[src]

impl Sub<SecondaryControls> for SecondaryControls[src]

type Output = SecondaryControls

The resulting type after applying the - operator.

fn sub(self, other: SecondaryControls) -> SecondaryControls[src]

Returns the set difference of the two sets of flags.

impl SubAssign<SecondaryControls> for SecondaryControls[src]

fn sub_assign(&mut self, other: SecondaryControls)[src]

Disables all flags enabled in the set.

impl UpperHex for SecondaryControls[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.