File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ pub struct MemoryTransmissionInfo {
3434 /// The amount of remaining 4k pages for this iteration.
3535 pub memory_pages_4k_remaining_iteration : u64 ,
3636 /// The amount of zero pages for that we could take a shortcut
37- pub memory_pages_zero_count : u64 ,
37+ /// as all bytes have on fixed value (e.g., a zero page).
38+ pub memory_pages_constant_count : u64 ,
3839 /// Current memory dirty rate in pages per seconds.
3940 pub memory_dirty_rate_pps : u64 ,
4041}
@@ -297,7 +298,7 @@ mod tests {
297298 memory_pages_4k_remaining_iteration : 42 ,
298299 memory_bytes_remaining_iteration : 124 ,
299300 memory_dirty_rate_pps : 42 ,
300- memory_pages_zero_count : 0 ,
301+ memory_pages_constant_count : 0 ,
301302 } ) ,
302303 Some ( 42 ) ,
303304 ) ;
Original file line number Diff line number Diff line change @@ -2120,7 +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 ,
2123+ memory_pages_constant_count : 0 ,
21242124 } ) ,
21252125 Some ( vm. throttle_percent ( ) ) ,
21262126 ) ;
You can’t perform that action at this time.
0 commit comments