Trait VmPartition

Source
pub trait VmPartition:
    'static
    + Send
    + Sync
    + InspectMut
    + ProtobufSaveRestore {
    // Required methods
    fn reset(&mut self) -> Result<()>;
    fn scrub_vtl(&mut self, vtl: Vtl) -> Result<()>;
    fn accept_initial_pages(
        &mut self,
        pages: Vec<(MemoryRange, PageVisibility)>,
    ) -> Result<()>;
}
Expand description

Trait with the minimal methods needed to run the partition.

Required Methods§

Source

fn reset(&mut self) -> Result<()>

Resets the partition.

Source

fn scrub_vtl(&mut self, vtl: Vtl) -> Result<()>

Scrubs the VTL state for a partition.

Source

fn accept_initial_pages( &mut self, pages: Vec<(MemoryRange, PageVisibility)>, ) -> Result<()>

Accepts pages on behalf of the loader.

Implementors§