pub trait VpContextBuilder {
type Register;
// Required methods
fn import_vp_register(&mut self, register: Self::Register);
fn set_vp_context_memory(&mut self, page_base: u64);
fn finalize(&mut self, state: &mut Vec<VpContextState>);
}
Expand description
Common trait used to implement VP context builders for different isolation architectures.
Required Associated Types§
Required Methods§
Sourcefn import_vp_register(&mut self, register: Self::Register)
fn import_vp_register(&mut self, register: Self::Register)
Import a register to the BSP at the given vtl.
Sourcefn 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.
Sourcefn 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.