File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ pub struct MemoryTransmissionInfo {
3535 pub memory_bytes_remaining_iteration : u64 ,
3636 /// Current memory dirty rate in pages per seconds.
3737 pub memory_dirty_rate_pps : u64 ,
38+ /// The amount of zero pages for that we could take a shortcut
39+ pub memory_pages_zero_count : u64 ,
3840}
3941
4042/// The different phases of an ongoing migration (good case).
@@ -295,6 +297,7 @@ mod tests {
295297 memory_pages_4k_remaining_iteration : 42 ,
296298 memory_bytes_remaining_iteration : 124 ,
297299 memory_dirty_rate_pps : 42 ,
300+ memory_pages_zero_count : 0 ,
298301 } ) ,
299302 Some ( 42 ) ,
300303 ) ;
Original file line number Diff line number Diff line change @@ -2120,6 +2120,7 @@ impl Vmm {
21202120 memory_pages_4k_remaining_iteration : s. current_dirty_pages ,
21212121 memory_bytes_remaining_iteration : s. pending_size ,
21222122 memory_dirty_rate_pps : 0 , /* TODO */
2123+ memory_pages_zero_count : 0 ,
21232124 } ) ,
21242125 Some ( vm. throttle_percent ( ) ) ,
21252126 ) ;
You can’t perform that action at this time.
0 commit comments