Trait VpContextBuilder

Source
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§

Source

type Register

The register type which is different on different architectures.

Required Methods§

Source

fn import_vp_register(&mut self, register: Self::Register)

Import a register to the BSP at the given vtl.

Source

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>)

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.

Implementors§