Skip to main content

PtRootFinder

Type Alias PtRootFinder 

Source
pub type PtRootFinder = Box<dyn Fn(&SnapshotMemoryReader<'_>, &[u8], u64) -> Result<Vec<u64>> + Send>;
Expand description

Re-export for the Sandbox type Re-export for the Sandbox type Re-export for the Sandbox type Callback for discovering page table roots from guest memory.

Called during Sandbox::snapshot with:

  • snapshot_mem - live snapshot memory accessed by GPA
  • scratch_mem - the sandbox’s scratch memory as a byte slice
  • root_pt_gpa - the root page table GPA of the currently-executing address space

Returns additional root page table GPAs to walk. root_pt_gpa is always walked first, ignoring duplicates. An error aborts the capture.

Aliased Type§

pub struct PtRootFinder(/* private fields */);