aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-04-05 18:32:37 +0200
committerJuan Quintela <quintela@redhat.com>2017-05-18 18:04:54 +0200
commit2833c59b947cf909020c4d6194aac35f383e832b (patch)
tree955fdc5ab08961829f9813e729866dd03949eb6a /include
parentf4a06d1391acf919da3f4291f2d6a70344d21c66 (diff)
migration: Create block capability
Create one capability for block migration and one parameter for incremental block migration. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> --- - address all Markus comments - use Markus and Eric text descriptions - change logic another time - improve text messages
Diffstat (limited to 'include')
-rw-r--r--include/migration/block.h2
-rw-r--r--include/migration/migration.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/include/migration/block.h b/include/migration/block.h
index 41a1ac8f79..5225af9d2b 100644
--- a/include/migration/block.h
+++ b/include/migration/block.h
@@ -20,4 +20,6 @@ uint64_t blk_mig_bytes_transferred(void);
uint64_t blk_mig_bytes_remaining(void);
uint64_t blk_mig_bytes_total(void);
+void migrate_set_block_enabled(bool value, Error **errp);
+
#endif /* MIGRATION_BLOCK_H */
diff --git a/include/migration/migration.h b/include/migration/migration.h
index 49ec5015e5..024a048ee4 100644
--- a/include/migration/migration.h
+++ b/include/migration/migration.h
@@ -153,6 +153,9 @@ struct MigrationState
/* The last error that occurred */
Error *error;
+ /* Do we have to clean up -b/-i from old migrate parameters */
+ /* This feature is deprecated and will be removed */
+ bool must_remove_block_options;
};
void migrate_set_state(int *state, int old_state, int new_state);
@@ -265,6 +268,9 @@ bool migrate_colo_enabled(void);
int64_t xbzrle_cache_resize(int64_t new_size);
+bool migrate_use_block(void);
+bool migrate_use_block_incremental(void);
+
bool migrate_use_compression(void);
int migrate_compress_level(void);
int migrate_compress_threads(void);