Skip to content

Commit e9a3321

Browse files
committed
x
1 parent c0b713e commit e9a3321

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

vm-migration/src/progress.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
);

vmm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
);

0 commit comments

Comments
 (0)