#[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 SevVmsawhere
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>,
impl AsBytes for SevVmsawhere
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_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl FromBytes for SevVmsawhere
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,
impl FromBytes for SevVmsawhere
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_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
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,
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,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
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,
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_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeroes for SevVmsawhere
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,
impl FromZeroes for SevVmsawhere
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 new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moreimpl Eq for SevVmsa
impl StructuralPartialEq for SevVmsa
Auto Trait Implementations§
impl Freeze for SevVmsa
impl RefUnwindSafe for SevVmsa
impl Send for SevVmsa
impl Sync for SevVmsa
impl Unpin for SevVmsa
impl UnwindSafe for SevVmsa
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)