Message ID | 1471343175-14945-8-git-send-email-vsementsov@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, 08/16 13:26, Vladimir Sementsov-Ogievskiy wrote: > bool migrate_use_events(void) > { > MigrationState *s; > diff --git a/qapi-schema.json b/qapi-schema.json > index 5658723..6386fbc 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -553,11 +553,13 @@ > # been migrated, pulling the remaining pages along as needed. NOTE: If > # the migration fails during postcopy the VM will fail. (since 2.6) > # > +# @dirty-bitmaps: If enabled, QEMU will migrate named dirty bitmaps. (since 2.6) This need to be 2.8. Fam
diff --git a/include/migration/migration.h b/include/migration/migration.h index ca93765..223e9ec 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -293,6 +293,7 @@ void migrate_del_blocker(Error *reason); bool migrate_postcopy(void); bool migrate_postcopy_ram(void); bool migrate_zero_blocks(void); +bool migrate_dirty_bitmaps(void); bool migrate_auto_converge(void); diff --git a/migration/migration.c b/migration/migration.c index 01a7bd5..7d56a8e 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1257,6 +1257,15 @@ int migrate_decompress_threads(void) return s->parameters.decompress_threads; } +bool migrate_dirty_bitmaps(void) +{ + MigrationState *s; + + s = migrate_get_current(); + + return s->enabled_capabilities[MIGRATION_CAPABILITY_DIRTY_BITMAPS]; +} + bool migrate_use_events(void) { MigrationState *s; diff --git a/qapi-schema.json b/qapi-schema.json index 5658723..6386fbc 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -553,11 +553,13 @@ # been migrated, pulling the remaining pages along as needed. NOTE: If # the migration fails during postcopy the VM will fail. (since 2.6) # +# @dirty-bitmaps: If enabled, QEMU will migrate named dirty bitmaps. (since 2.6) +# # Since: 1.2 ## { 'enum': 'MigrationCapability', 'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks', - 'compress', 'events', 'postcopy-ram'] } + 'compress', 'events', 'postcopy-ram', 'dirty-bitmaps'] } ## # @MigrationCapabilityStatus