pub struct VbsVpContext<R: VbsRegister> {
registers: Vec<R>,
vtl: Vtl,
}
Fields§
§registers: Vec<R>
The registers set for this VP.
vtl: Vtl
The VTL this VP context is for.
Implementations§
Trait Implementations§
Source§impl<R: Clone + VbsRegister> Clone for VbsVpContext<R>
impl<R: Clone + VbsRegister> Clone for VbsVpContext<R>
Source§fn clone(&self) -> VbsVpContext<R>
fn clone(&self) -> VbsVpContext<R>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R: Debug + VbsRegister> Debug for VbsVpContext<R>
impl<R: Debug + VbsRegister> Debug for VbsVpContext<R>
Source§impl<R: VbsRegister> VpContextBuilder for VbsVpContext<R>
impl<R: VbsRegister> VpContextBuilder for VbsVpContext<R>
Source§fn import_vp_register(&mut self, register: R)
fn import_vp_register(&mut self, register: R)
Import a register to the BSP at the given vtl.
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<R> Freeze for VbsVpContext<R>
impl<R> RefUnwindSafe for VbsVpContext<R>where
R: RefUnwindSafe,
impl<R> Send for VbsVpContext<R>where
R: Send,
impl<R> Sync for VbsVpContext<R>where
R: Sync,
impl<R> Unpin for VbsVpContext<R>where
R: Unpin,
impl<R> UnwindSafe for VbsVpContext<R>where
R: UnwindSafe,
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