Struct x86defs::snp::SevVmsa

source ·
#[repr(C)]
pub struct SevVmsa {
Show 106 fields pub es: SevSelector, pub cs: SevSelector, pub ss: SevSelector, pub ds: SevSelector, pub fs: SevSelector, pub gs: SevSelector, pub gdtr: SevSelector, pub ldtr: SevSelector, pub idtr: SevSelector, pub tr: SevSelector, pub pl0_ssp: u64, pub pl1_ssp: u64, pub pl2_ssp: u64, pub pl3_ssp: u64, pub u_cet: u64, pub vmsa_reserved1: [u8; 2], pub vmpl: u8, pub cpl: u8, pub vmsa_reserved2: u32, pub efer: u64, pub vmsa_reserved3: [u32; 26], pub xss: u64, pub cr4: u64, pub cr3: u64, pub cr0: u64, pub dr7: u64, pub dr6: u64, pub rflags: u64, pub rip: u64, pub dr0: u64, pub dr1: u64, pub dr2: u64, pub dr3: u64, pub dr0_addr_mask: u64, pub dr1_addr_mask: u64, pub dr2_addr_mask: u64, pub dr3_addr_mask: u64, pub vmsa_reserved4: [u64; 3], pub rsp: u64, pub s_cet: u64, pub ssp: u64, pub interrupt_ssp_table_addr: u64, pub rax: u64, pub star: u64, pub lstar: u64, pub cstar: u64, pub sfmask: u64, pub kernel_gs_base: u64, pub sysenter_cs: u64, pub sysenter_esp: u64, pub sysenter_eip: u64, pub cr2: u64, pub vmsa_reserved5: [u64; 4], pub pat: u64, pub dbgctl: u64, pub last_branch_from_ip: u64, pub last_branch_to_ip: u64, pub last_excp_from_ip: u64, pub last_excp_to_ip: u64, pub vmsa_reserved6: [u64; 9], pub spec_ctrl: u64, pub pkru: u32, pub tsc_aux: u32, pub vmsa_reserved7: [u32; 4], pub register_protection_nonce: u64, pub rcx: u64, pub rdx: u64, pub rbx: u64, pub vmsa_reserved8: u64, pub rbp: u64, pub rsi: u64, pub rdi: u64, pub r8: u64, pub r9: u64, pub r10: u64, pub r11: u64, pub r12: u64, pub r13: u64, pub r14: u64, pub r15: u64, pub vmsa_reserved9: [u64; 2], pub exit_info1: u64, pub exit_info2: u64, pub exit_int_info: u64, pub next_rip: u64, pub sev_features: SevFeatures, pub v_intr_cntrl: SevVirtualInterruptControl, pub guest_error_code: u64, pub virtual_tom: u64, pub tlb_id: u64, pub pcpu_id: u64, pub event_inject: SevEventInjectInfo, pub xcr0: u64, pub xsave_valid_bitmap: [u8; 16], pub x87dp: u64, pub mxcsr: u32, pub x87_ftw: u16, pub x87_fsw: u16, pub x87_fcw: u16, pub x87_op: u16, pub x87_ds: u16, pub x87_cs: u16, pub x87_rip: u64, pub x87_registers: [u64; 10], pub xmm_registers: [SevXmmRegister; 16], pub ymm_registers: [SevXmmRegister; 16],
}
Expand description

SEV VMSA structure representing CPU state

Fields§

§es: SevSelector§cs: SevSelector§ss: SevSelector§ds: SevSelector§fs: SevSelector§gs: SevSelector§gdtr: SevSelector§ldtr: SevSelector§idtr: SevSelector§tr: SevSelector§pl0_ssp: u64§pl1_ssp: u64§pl2_ssp: u64§pl3_ssp: u64§u_cet: u64§vmsa_reserved1: [u8; 2]§vmpl: u8§cpl: u8§vmsa_reserved2: u32§efer: u64§vmsa_reserved3: [u32; 26]§xss: u64§cr4: u64§cr3: u64§cr0: u64§dr7: u64§dr6: u64§rflags: u64§rip: u64§dr0: u64§dr1: u64§dr2: u64§dr3: u64§dr0_addr_mask: u64§dr1_addr_mask: u64§dr2_addr_mask: u64§dr3_addr_mask: u64§vmsa_reserved4: [u64; 3]§rsp: u64§s_cet: u64§ssp: u64§interrupt_ssp_table_addr: u64§rax: u64§star: u64§lstar: u64§cstar: u64§sfmask: u64§kernel_gs_base: u64§sysenter_cs: u64§sysenter_esp: u64§sysenter_eip: u64§cr2: u64§vmsa_reserved5: [u64; 4]§pat: u64§dbgctl: u64§last_branch_from_ip: u64§last_branch_to_ip: u64§last_excp_from_ip: u64§last_excp_to_ip: u64§vmsa_reserved6: [u64; 9]§spec_ctrl: u64§pkru: u32§tsc_aux: u32§vmsa_reserved7: [u32; 4]§register_protection_nonce: u64§rcx: u64§rdx: u64§rbx: u64§vmsa_reserved8: u64§rbp: u64§rsi: u64§rdi: u64§r8: u64§r9: u64§r10: u64§r11: u64§r12: u64§r13: u64§r14: u64§r15: u64§vmsa_reserved9: [u64; 2]§exit_info1: u64§exit_info2: u64§exit_int_info: u64§next_rip: u64§sev_features: SevFeatures§v_intr_cntrl: SevVirtualInterruptControl§guest_error_code: u64§virtual_tom: u64§tlb_id: u64§pcpu_id: u64§event_inject: SevEventInjectInfo§xcr0: u64§xsave_valid_bitmap: [u8; 16]§x87dp: u64§mxcsr: u32§x87_ftw: u16§x87_fsw: u16§x87_fcw: u16§x87_op: u16§x87_ds: u16§x87_cs: u16§x87_rip: u64§x87_registers: [u64; 10]§xmm_registers: [SevXmmRegister; 16]§ymm_registers: [SevXmmRegister; 16]

Trait Implementations§

source§

impl AsBytes for SevVmsa
where SevSelector: AsBytes, u64: AsBytes, [u8; 2]: AsBytes, u8: AsBytes, u32: AsBytes, [u32; 26]: AsBytes, [u64; 3]: AsBytes, [u64; 4]: AsBytes, [u64; 9]: AsBytes, [u32; 4]: AsBytes, [u64; 2]: AsBytes, SevFeatures: AsBytes, SevVirtualInterruptControl: AsBytes, SevEventInjectInfo: AsBytes, [u8; 16]: AsBytes, u16: AsBytes, [u64; 10]: AsBytes, [SevXmmRegister; 16]: AsBytes, HasPadding<SevVmsa, { _ }>: ShouldBe<false>,

§

fn as_bytes(&self) -> &[u8]

Gets the bytes of this value. Read more
§

fn as_bytes_mut(&mut self) -> &mut [u8]
where Self: FromBytes,

Gets the bytes of this value mutably. Read more
§

fn write_to(&self, bytes: &mut [u8]) -> Option<()>

Writes a copy of self to bytes. Read more
§

fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

Writes a copy of self to the prefix of bytes. Read more
§

fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

Writes a copy of self to the suffix of bytes. Read more
source§

impl Clone for SevVmsa

source§

fn clone(&self) -> SevVmsa

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 SevVmsa

source§

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

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

impl FromBytes for SevVmsa
where SevSelector: FromBytes, u64: FromBytes, [u8; 2]: FromBytes, u8: FromBytes, u32: FromBytes, [u32; 26]: FromBytes, [u64; 3]: FromBytes, [u64; 4]: FromBytes, [u64; 9]: FromBytes, [u32; 4]: FromBytes, [u64; 2]: FromBytes, SevFeatures: FromBytes, SevVirtualInterruptControl: FromBytes, SevEventInjectInfo: FromBytes, [u8; 16]: FromBytes, u16: FromBytes, [u64; 10]: FromBytes, [SevXmmRegister; 16]: FromBytes,

§

fn ref_from(bytes: &[u8]) -> Option<&Self>
where Self: Sized,

Interprets the given bytes as a &Self without copying. Read more
§

fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
where Self: Sized,

Interprets the prefix of the given bytes as a &Self without copying. Read more
§

fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
where Self: Sized,

Interprets the suffix of the given bytes as a &Self without copying. Read more
§

fn mut_from(bytes: &mut [u8]) -> Option<&mut Self>
where Self: Sized + AsBytes,

Interprets the given bytes as a &mut Self without copying. Read more
§

fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>
where Self: Sized + AsBytes,

Interprets the prefix of the given bytes as a &mut Self without copying. Read more
§

fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>
where Self: Sized + AsBytes,

Interprets the suffix of the given bytes as a &mut Self without copying. Read more
§

fn slice_from(bytes: &[u8]) -> Option<&[Self]>
where Self: Sized,

Interprets the given bytes as a &[Self] without copying. Read more
§

fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
where Self: Sized,

Interprets the prefix of the given bytes as a &[Self] with length equal to count without copying. Read more
§

fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
where Self: Sized,

Interprets the suffix of the given bytes as a &[Self] with length equal to count without copying. Read more
§

fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>
where Self: Sized + AsBytes,

Interprets the given bytes as a &mut [Self] without copying. Read more
§

fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
where Self: Sized + AsBytes,

Interprets the prefix of the given bytes as a &mut [Self] with length equal to count without copying. Read more
§

fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
where Self: Sized + AsBytes,

Interprets the suffix of the given bytes as a &mut [Self] with length equal to count without copying. Read more
§

fn read_from(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from bytes. Read more
§

fn read_from_prefix(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from the prefix of bytes. Read more
§

fn read_from_suffix(bytes: &[u8]) -> Option<Self>
where Self: Sized,

Reads a copy of Self from the suffix of bytes. Read more
source§

impl FromZeroes for SevVmsa
where SevSelector: FromZeroes, u64: FromZeroes, [u8; 2]: FromZeroes, u8: FromZeroes, u32: FromZeroes, [u32; 26]: FromZeroes, [u64; 3]: FromZeroes, [u64; 4]: FromZeroes, [u64; 9]: FromZeroes, [u32; 4]: FromZeroes, [u64; 2]: FromZeroes, SevFeatures: FromZeroes, SevVirtualInterruptControl: FromZeroes, SevEventInjectInfo: FromZeroes, [u8; 16]: FromZeroes, u16: FromZeroes, [u64; 10]: FromZeroes, [SevXmmRegister; 16]: FromZeroes,

§

fn zero(&mut self)

Overwrites self with zeroes. Read more
§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
§

fn new_box_zeroed() -> Box<Self>
where Self: Sized,

Creates a Box<Self> from zeroed bytes. Read more
§

fn new_box_slice_zeroed(len: usize) -> Box<[Self]>
where Self: Sized,

Creates a Box<[Self]> (a boxed slice) from zeroed bytes. Read more
§

fn new_vec_zeroed(len: usize) -> Vec<Self>
where Self: Sized,

Creates a Vec<Self> from zeroed bytes. Read more
source§

impl PartialEq for SevVmsa

source§

fn eq(&self, other: &SevVmsa) -> 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 Eq for SevVmsa

source§

impl StructuralPartialEq for SevVmsa

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.