File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
src/hyperlight_host/src/hypervisor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -611,11 +611,11 @@ impl Hypervisor for HypervWindowsDriver {
611611        // For now we just mark all pages dirty which is the equivalent of taking a full snapshot 
612612        let  total_size = self . mem_regions . iter ( ) . map ( |r| r. guest_region . len ( ) ) . sum ( ) ; 
613613        let  bitmap = new_page_bitmap ( total_size,  true ) ?; 
614-          
614+ 
615615        // Count the number of set bits in the bitmap 
616616        let  set_bit_count = crate :: mem:: bitmap:: bit_index_iterator ( & bitmap) . count ( ) ; 
617617        let  expected_count = total_size. div_ceil ( hyperlight_common:: mem:: PAGE_SIZE_USIZE ) ; 
618-          
618+ 
619619        if  set_bit_count *  hyperlight_common:: mem:: PAGE_SIZE_USIZE  != total_size { 
620620            println ! ( 
621621                "Dirty page bitmap size mismatch: {} set bits * {} page size = {} bytes, but expected {} bytes and {} set bits" , 
@@ -626,7 +626,7 @@ impl Hypervisor for HypervWindowsDriver {
626626                expected_count
627627            ) ; 
628628        } 
629-          
629+ 
630630        Ok ( bitmap) 
631631    } 
632632
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments