Skip to contentSkip to conversation

Postcopy: Fix sync count in info migrate

PATCH In review Dr. David Alan Gilbert (git) 2 participants 3 messages Feb 25, 2016

lore
Share & tools
lore
#0 lore raw

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
index fc5e50b..34d3e5f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

---
  migration/migration.c | 1 +
  1 file changed, 1 insertion(+)
migration/migration.c +0 -0
index fc5e50b..34d3e5f 100644

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.

#2 lore raw
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.

---
 migration/migration.c | 1 +
 1 file changed, 1 insertion(+)
migration/migration.c +1 -0
index fc5e50b..34d3e5f 100644
@@ -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 -0
         if (blk_mig_active()) {
             info->has_disk = true;

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