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 /hw/s390x | |
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 'hw/s390x')
-rw-r--r-- | hw/s390x/s390-stattrib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/s390x/s390-stattrib.c b/hw/s390x/s390-stattrib.c index adf07ef312..70b95550a8 100644 --- a/hw/s390x/s390-stattrib.c +++ b/hw/s390x/s390-stattrib.c @@ -183,15 +183,16 @@ static int cmma_save_setup(QEMUFile *f, void *opaque) } static void cmma_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) { S390StAttribState *sas = S390_STATTRIB(opaque); S390StAttribClass *sac = S390_STATTRIB_GET_CLASS(sas); long long res = sac->get_dirtycount(sas); if (res >= 0) { - *non_postcopiable_pending += res; + *res_precopy_only += res; } } |