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

pub struct EntryControls { /* fields omitted */ }

VM-entry controls.

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

See Intel SDM, Volume 3C, Section 24.8.

Implementations

impl EntryControls[src]

pub const LOAD_DEBUG_CONTROLS: EntryControls[src]

Load debug controls.

pub const IA32E_MODE_GUEST: EntryControls[src]

IA-32e mode guest.

pub const ENTRY_TO_SMM: EntryControls[src]

Entry to SMM.

pub const DEACTIVATE_DUAL_MONITOR: EntryControls[src]

Deactivate dual-monitor treatment.

pub const LOAD_IA32_PERF_GLOBAL_CTRL: EntryControls[src]

Load IA32_PERF_GLOBAL_CTRL.

pub const LOAD_IA32_PAT: EntryControls[src]

Load IA32_PAT.

pub const LOAD_IA32_EFER: EntryControls[src]

Load IA32_EFER.

pub const LOAD_IA32_BNDCFGS: EntryControls[src]

Load IA32_BNDCFGS.

pub const CONCEAL_VMX_FROM_PT: EntryControls[src]

Conceal VMX from PT.

pub const LOAD_IA32_RTIT_CTL: EntryControls[src]

Load IA32_RTIT_CTL.

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

Returns an empty set of flags

pub const fn all() -> EntryControls[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<EntryControls>[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) -> EntryControls[src]

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

pub const unsafe fn from_bits_unchecked(bits: u32) -> EntryControls[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: EntryControls) -> bool[src]

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

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

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

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

Inserts the specified flags in-place.

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

Removes the specified flags in-place.

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

Toggles the specified flags in-place.

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

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

Trait Implementations

impl Binary for EntryControls[src]

impl BitAnd<EntryControls> for EntryControls[src]

type Output = EntryControls

The resulting type after applying the & operator.

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

Returns the intersection between the two sets of flags.

impl BitAndAssign<EntryControls> for EntryControls[src]

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

Disables all flags disabled in the set.

impl BitOr<EntryControls> for EntryControls[src]

type Output = EntryControls

The resulting type after applying the | operator.

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

Returns the union of the two sets of flags.

impl BitOrAssign<EntryControls> for EntryControls[src]

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

Adds the set of flags.

impl BitXor<EntryControls> for EntryControls[src]

type Output = EntryControls

The resulting type after applying the ^ operator.

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

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

impl BitXorAssign<EntryControls> for EntryControls[src]

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

Toggles the set of flags.

impl Clone for EntryControls[src]

impl Copy for EntryControls[src]

impl Debug for EntryControls[src]

impl Eq for EntryControls[src]

impl Extend<EntryControls> for EntryControls[src]

impl FromIterator<EntryControls> for EntryControls[src]

impl Hash for EntryControls[src]

impl LowerHex for EntryControls[src]

impl Not for EntryControls[src]

type Output = EntryControls

The resulting type after applying the ! operator.

fn not(self) -> EntryControls[src]

Returns the complement of this set of flags.

impl Octal for EntryControls[src]

impl Ord for EntryControls[src]

impl PartialEq<EntryControls> for EntryControls[src]

impl PartialOrd<EntryControls> for EntryControls[src]

impl StructuralEq for EntryControls[src]

impl StructuralPartialEq for EntryControls[src]

impl Sub<EntryControls> for EntryControls[src]

type Output = EntryControls

The resulting type after applying the - operator.

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

Returns the set difference of the two sets of flags.

impl SubAssign<EntryControls> for EntryControls[src]

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

Disables all flags enabled in the set.

impl UpperHex for EntryControls[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.