diff options
author | Juan Quintela <quintela@redhat.com> | 2013-02-01 13:22:37 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-02-22 10:12:52 +0100 |
commit | 90f8ae724a575861f093fbdbfd49a925bcfec327 (patch) | |
tree | bd76c7c5cfd71e6bbbfd242b6ac4d6c07039e696 /arch_init.c | |
parent | 7161082c8d8cf167c508976887a0a63f4db92b51 (diff) |
migration: calculate expected_downtime
We removed the calculation in commit e4ed1541ac9413eac494a03532e34beaf8a7d1c5
Now we add it back. We need to create dirty_bytes_rate because we
can't include cpu-all.h from migration.c, and there is no other way to
include TARGET_PAGE_SIZE.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'arch_init.c')
-rw-r--r-- | arch_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch_init.c b/arch_init.c index 8da868b988..8daeafaf5c 100644 --- a/arch_init.c +++ b/arch_init.c @@ -414,6 +414,7 @@ static void migration_bitmap_sync(void) if (end_time > start_time + 1000) { s->dirty_pages_rate = num_dirty_pages_period * 1000 / (end_time - start_time); + s->dirty_bytes_rate = s->dirty_pages_rate * TARGET_PAGE_SIZE; start_time = end_time; num_dirty_pages_period = 0; } |