Struct simics_api_sys::bindings::smm_reg_state_t

source ·
#[repr(C)]
pub struct smm_reg_state_t {
Show 44 fields pub gpr: [uint64; 16], pub seg_sel: [uint16; 6], pub tr_sel: uint16, pub ldtr_sel: uint16, pub seg_base: [uint64; 6], pub tr_base: uint64, pub ldtr_base: uint64, pub seg_attr: [uint32; 6], pub tr_attr: uint32, pub ldtr_attr: uint32, pub seg_limit: [uint32; 6], pub tr_limit: uint32, pub ldtr_limit: uint32, pub cr0: uint64, pub cr2: uint64, pub cr3: uint64, pub cr4: uint64, pub cr8: uint64, pub ia32_efer: uint64, pub rip: uint64, pub rflags: uint64, pub dr: [uint64; 4], pub dr6: uint64, pub dr7: uint64, pub smbase: uint32, pub idtr_limit: uint16, pub gdtr_limit: uint16, pub idtr_base: uint64, pub gdtr_base: uint64, pub activity_hlt: bool, pub io_instr_restart: bool, pub block_nmi: bool, pub vmx_mode: uint8, pub ept_is_on: bool, pub reserved: [bool; 3], pub io_rip: uint64, pub io_lin_addr: uint64, pub io_instr_info: uint32, pub reserved2: uint32, pub bndcfgs: uint64, pub eptp: uint64, pub pdpte: [uint64; 4], pub ssp: uint64, pub reserved3: [uint64; 6],
}
Expand description

Attribute format: type bit 0..3 s bit 4 dpl bit 5..6 p bit 7 avl bit 12 l bit 13 db bit 14 g bit 15 invalid bit 16

Fields§

§gpr: [uint64; 16]§seg_sel: [uint16; 6]§tr_sel: uint16§ldtr_sel: uint16§seg_base: [uint64; 6]§tr_base: uint64§ldtr_base: uint64§seg_attr: [uint32; 6]§tr_attr: uint32§ldtr_attr: uint32§seg_limit: [uint32; 6]§tr_limit: uint32§ldtr_limit: uint32§cr0: uint64§cr2: uint64§cr3: uint64§cr4: uint64§cr8: uint64§ia32_efer: uint64§rip: uint64§rflags: uint64§dr: [uint64; 4]§dr6: uint64§dr7: uint64§smbase: uint32§idtr_limit: uint16§gdtr_limit: uint16§idtr_base: uint64§gdtr_base: uint64§activity_hlt: bool§io_instr_restart: bool§block_nmi: bool§vmx_mode: uint8§ept_is_on: bool§reserved: [bool; 3]§io_rip: uint64§io_lin_addr: uint64§io_instr_info: uint32§reserved2: uint32§bndcfgs: uint64

MPX state

§eptp: uint64

valid only if EPT is on

§pdpte: [uint64; 4]§ssp: uint64§reserved3: [uint64; 6]

Trait Implementations§

source§

impl Clone for smm_reg_state_t

source§

fn clone(&self) -> smm_reg_state_t

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 smm_reg_state_t

source§

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

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

impl Default for smm_reg_state_t

source§

fn default() -> smm_reg_state_t

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

impl Hash for smm_reg_state_t

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for smm_reg_state_t

source§

fn cmp(&self, other: &smm_reg_state_t) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for smm_reg_state_t

source§

fn eq(&self, other: &smm_reg_state_t) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for smm_reg_state_t

source§

fn partial_cmp(&self, other: &smm_reg_state_t) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Copy for smm_reg_state_t

source§

impl Eq for smm_reg_state_t

source§

impl StructuralPartialEq for smm_reg_state_t

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.