File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/hyperlight_host/src/hypervisor Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,11 @@ pub(crate) trait Hypervisor: Debug + Sync + Send {
187187 None
188188 }
189189
190+ /// Get dirty pages as a bitmap (Vec<u64>).
191+ /// Each bit in a u64 represents a page.
192+ /// This also clears the bitflags, marking the pages as non-dirty.
193+ fn get_and_clear_dirty_pages ( & mut self ) -> Result < Vec < u64 > > ;
194+
190195 /// Get InterruptHandle to underlying VM
191196 fn interrupt_handle ( & self ) -> Arc < dyn InterruptHandle > ;
192197
@@ -548,12 +553,14 @@ pub(crate) mod tests {
548553 let rt_cfg: SandboxRuntimeConfig = Default :: default ( ) ;
549554 let sandbox =
550555 UninitializedSandbox :: new ( GuestBinary :: FilePath ( filename. clone ( ) ) , Some ( config) ) ?;
556+ let tracker = sandbox. tracker ;
551557 let ( _hshm, mut gshm) = sandbox. mgr . build ( ) ;
552558 let mut vm = set_up_hypervisor_partition (
553559 & mut gshm,
554560 & config,
555561 #[ cfg( any( crashdump, gdb) ) ]
556562 & rt_cfg,
563+ tracker,
557564 ) ?;
558565 vm. initialise (
559566 RawPtr :: from ( 0x230000 ) ,
You can’t perform that action at this time.
0 commit comments