pub struct TdxHardwareContext {
trampoline_context: TdxTrampolineContext,
accept_lower_1mb: bool,
}
Expand description
Represents a hardware context for TDX. This contains both the sets of initial registers and registers set by the trampoline code.
Fields§
§trampoline_context: TdxTrampolineContext
§accept_lower_1mb: bool
Implementations§
Trait Implementations§
Source§impl Debug for TdxHardwareContext
impl Debug for TdxHardwareContext
Source§impl VpContextBuilder for TdxHardwareContext
impl VpContextBuilder for TdxHardwareContext
Source§fn import_vp_register(&mut self, register: X86Register)
fn import_vp_register(&mut self, register: X86Register)
Import a register into the hardware context. Only a subset of registers are allowed.
Source§type Register = X86Register
type Register = X86Register
The register type which is different on different architectures.
Source§fn set_vp_context_memory(&mut self, _page_base: u64)
fn set_vp_context_memory(&mut self, _page_base: u64)
Define the base of the GPA range to be used for architecture-specific VP context data.
Source§fn finalize(&mut self, state: &mut Vec<VpContextState>)
fn finalize(&mut self, state: &mut Vec<VpContextState>)
Finalize all VP context data. Returns architecture specific data that should be either imported
into guest memory space or added directly to the IGVM file.
Auto Trait Implementations§
impl Freeze for TdxHardwareContext
impl RefUnwindSafe for TdxHardwareContext
impl Send for TdxHardwareContext
impl Sync for TdxHardwareContext
impl Unpin for TdxHardwareContext
impl UnwindSafe for TdxHardwareContext
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