Skip to content

Commit f612cf6

Browse files
committed
xxx
1 parent 4cea375 commit f612cf6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

vm-migration/src/progress.rs

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

vmm/src/lib.rs

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

0 commit comments

Comments
 (0)