Postcopy: Fix sync count in info migrate
PATCH 1/1 Postcopy: Fix sync count in info migrate
From: "Dr. David Alan Gilbert" <[email protected]>
I'd missed the sync count off in the postcopy case.
--- migration/migration.c | 1 + 1 file changed, 1 insertion(+)
migration/migration.c +1 -0
@@ -626,6 +626,7 @@ MigrationInfo *qmp_query_migrate(Error **errp) info->ram->normal_bytes =norm_mig_bytes_transferred (); info->ram->dirty_pages_rate = s->dirty_pages_rate; info->ram->mbps = s->mbps; + info->ram->dirty_sync_count = s->dirty_sync_count;if (blk_mig_active ()) { info->has_disk = true;
Signature · 1 line
2.5.0
Quoted 15 lines · Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" <[email protected]>
I'd missed the sync count off in the postcopy case.
Signed-off-by Dr. David Alan Gilbert <[email protected]>--- migration/migration.c | 1 + 1 file changed, 1 insertion(+)migration/migration.c +0
-0
migration/migration.c MigrationInfo *qmp_query_migrate(Error **errp) · line 632
Quoted 7 lines
migration/migration.c +1
-0@@ -626,6 +626,7 @@ MigrationInfo *qmp_query_migrate(Error **errp) info->ram->normal_bytes =norm_mig_bytes_transferred (); info->ram->dirty_pages_rate = s->dirty_pages_rate; info->ram->mbps = s->mbps; + info->ram->dirty_sync_count = s->dirty_sync_count;if (blk_mig_active ()) { info->has_disk = true;
I noticed that, the stats of 'POSTCOPY_ACTIVE' is almost the copy of 'ACTIVE' case. Maybe we can simplify it.
Quoted 20 lines · * Hailiang Zhang ([email protected]) wrote:
Quoted 19 lines · Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" <[email protected]>
I'd missed the sync count off in the postcopy case.
Signed-off-by Dr. David Alan Gilbert <[email protected]>--- migration/migration.c | 1 + 1 file changed, 1 insertion(+)migration/migration.c +1
-0@@ -626,6 +626,7 @@ MigrationInfo *qmp_query_migrate(Error **errp) info->ram->normal_bytes =norm_mig_bytes_transferred (); info->ram->dirty_pages_rate = s->dirty_pages_rate; info->ram->mbps = s->mbps; + info->ram->dirty_sync_count = s->dirty_sync_count;
Quoted 5 lines
migration/migration.c MigrationInfo *qmp_query_migrate(Error **errp) · line 632
Quoted 3 lines
migration/migration.c +0
-0if (blk_mig_active ()) { info->has_disk = true;Reviewed-by zhanghailiang <[email protected]>
Thanks,
Quoted 2 lines
I noticed that, the stats of '
POSTCOPY_ACTIVE' is almost the copy of 'ACTIVE' case. Maybe we can simplify it.
Yes, I keep intending to add more stats to POSTCOPY_ACTIVE, but haven't done so yet.
Dave
Quoted 3 lines
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK