Struct x86defs::vmx::VmcsField

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

Implementations§

source§

impl VmcsField

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 access_high(&self) -> u32

Bits: 0..1

source

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

Bits: 0..1

source

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

Bits: 0..1

source

pub const fn index(&self) -> u32

Bits: 1..10

source

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

Bits: 1..10

source

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

Bits: 1..10

source

pub const fn typ(&self) -> u32

Bits: 10..12

source

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

Bits: 10..12

source

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

Bits: 10..12

source

pub const fn reserved(&self) -> u32

Bits: 12..13

source

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

Bits: 12..13

source

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

Bits: 12..13

source

pub const fn field_width(&self) -> FieldWidth

Bits: 13..15

source

pub const fn with_field_width(self, value: FieldWidth) -> Self

Bits: 13..15

source

pub fn set_field_width(&mut self, value: FieldWidth)

Bits: 13..15

source

pub const fn reserved2(&self) -> u32

Bits: 15..32

source

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

Bits: 15..32

source

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

Bits: 15..32

source§

impl VmcsField

source

pub const VMX_VMCS_ENTRY_CONTROLS: Self = _

source

pub const VMX_VMCS_GUEST_CR0: Self = _

source

pub const VMX_VMCS_GUEST_CR3: Self = _

source

pub const VMX_VMCS_GUEST_CR4: Self = _

source

pub const VMX_VMCS_GUEST_DR7: Self = _

source

pub const VMX_VMCS_GUEST_ES_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_ES_BASE: Self = _

source

pub const VMX_VMCS_GUEST_ES_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_ES_AR: Self = _

source

pub const VMX_VMCS_GUEST_CS_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_CS_BASE: Self = _

source

pub const VMX_VMCS_GUEST_CS_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_CS_AR: Self = _

source

pub const VMX_VMCS_GUEST_SS_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_SS_BASE: Self = _

source

pub const VMX_VMCS_GUEST_SS_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_SS_AR: Self = _

source

pub const VMX_VMCS_GUEST_DS_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_DS_BASE: Self = _

source

pub const VMX_VMCS_GUEST_DS_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_DS_AR: Self = _

source

pub const VMX_VMCS_GUEST_FS_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_FS_BASE: Self = _

source

pub const VMX_VMCS_GUEST_FS_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_FS_AR: Self = _

source

pub const VMX_VMCS_GUEST_GS_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_GS_BASE: Self = _

source

pub const VMX_VMCS_GUEST_GS_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_GS_AR: Self = _

source

pub const VMX_VMCS_GUEST_LDTR_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_LDTR_BASE: Self = _

source

pub const VMX_VMCS_GUEST_LDTR_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_LDTR_AR: Self = _

source

pub const VMX_VMCS_GUEST_TR_SELECTOR: Self = _

source

pub const VMX_VMCS_GUEST_TR_BASE: Self = _

source

pub const VMX_VMCS_GUEST_TR_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_TR_AR: Self = _

source

pub const VMX_VMCS_GUEST_GDTR_BASE: Self = _

source

pub const VMX_VMCS_GUEST_GDTR_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_IDTR_BASE: Self = _

source

pub const VMX_VMCS_GUEST_IDTR_LIMIT: Self = _

source

pub const VMX_VMCS_GUEST_PAT: Self = _

source

pub const VMX_VMCS_GUEST_EFER: Self = _

source

pub const VMX_VMCS_EOI_EXIT_0: Self = _

source

pub const VMX_VMCS_EOI_EXIT_1: Self = _

source

pub const VMX_VMCS_EOI_EXIT_2: Self = _

source

pub const VMX_VMCS_EOI_EXIT_3: Self = _

source

pub const VMX_VMCS_PROCESSOR_CONTROLS: Self = _

source

pub const VMX_VMCS_EXCEPTION_BITMAP: Self = _

source

pub const VMX_VMCS_ENTRY_INTERRUPT_INFO: Self = _

source

pub const VMX_VMCS_ENTRY_EXCEPTION_ERROR_CODE: Self = _

source

pub const VMX_VMCS_ENTRY_INSTRUCTION_LENGTH: Self = _

source

pub const VMX_VMCS_TPR_THRESHOLD: Self = _

source

pub const VMX_VMCS_SECONDARY_PROCESSOR_CONTROLS: Self = _

source

pub const VMX_VMCS_CR0_GUEST_HOST_MASK: Self = _

source

pub const VMX_VMCS_CR4_GUEST_HOST_MASK: Self = _

source

pub const VMX_VMCS_CR0_READ_SHADOW: Self = _

source

pub const VMX_VMCS_CR4_READ_SHADOW: Self = _

source

pub const VMX_VMCS_GUEST_INTERRUPTIBILITY: Self = _

source

pub const VMX_VMCS_GUEST_SYSENTER_CS_MSR: Self = _

source

pub const VMX_VMCS_GUEST_SYSENTER_ESP_MSR: Self = _

source

pub const VMX_VMCS_GUEST_SYSENTER_EIP_MSR: Self = _

Trait Implementations§

source§

impl Clone for VmcsField

source§

fn clone(&self) -> VmcsField

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 VmcsField

source§

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

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

impl Default for VmcsField

source§

fn default() -> Self

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

impl From<VmcsField> for u32

source§

fn from(v: VmcsField) -> u32

Converts to this type from the input type.
source§

impl From<u32> for VmcsField

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for VmcsField

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.