diff options
| author | Vladimir Sementsov-Ogievskiy | 2018-03-13 20:34:00 +0100 |
|---|---|---|
| committer | John Snow | 2018-03-13 22:05:41 +0100 |
| commit | 4799502640e6a29d37dacb116a590fc03bacbb01 (patch) | |
| tree | fc0d7233ce4741e9276f200e7d3917cd9c9d5dd4 /migration/block.c | |
| parent | dirty-bitmap: add locked state (diff) | |
| download | qemu-4799502640e6a29d37dacb116a590fc03bacbb01.tar.gz qemu-4799502640e6a29d37dacb116a590fc03bacbb01.tar.xz qemu-4799502640e6a29d37dacb116a590fc03bacbb01.zip | |
migration: introduce postcopy-only pending
There would be savevm states (dirty-bitmap) which can migrate only in
postcopy stage. The corresponding pending is introduced here.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-id: 20180313180320.339796-6-vsementsov@virtuozzo.com
Diffstat (limited to 'migration/block.c')
| -rw-r--r-- | migration/block.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/migration/block.c b/migration/block.c index 41b95d1dd8..5c03632257 100644 --- a/migration/block.c +++ b/migration/block.c @@ -864,8 +864,9 @@ static int block_save_complete(QEMUFile *f, void *opaque) } static void block_save_pending(QEMUFile *f, void *opaque, uint64_t max_size, - uint64_t *non_postcopiable_pending, - uint64_t *postcopiable_pending) + uint64_t *res_precopy_only, + uint64_t *res_compatible, + uint64_t *res_postcopy_only) { /* Estimate pending number of bytes to send */ uint64_t pending; @@ -886,7 +887,7 @@ static void block_save_pending(QEMUFile *f, void *opaque, uint64_t max_size, DPRINTF("Enter save live pending %" PRIu64 "\n", pending); /* We don't do postcopy */ - *non_postcopiable_pending += pending; + *res_precopy_only += pending; } static int block_load(QEMUFile *f, void *opaque, int version_id) |
