diff options
author | Liang Li <liang.z.li@intel.com> | 2015-03-23 16:32:17 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2015-05-06 17:36:57 +0200 |
commit | 8706d2d566cbf4bad2c5597bb57358e3d5f5caf0 (patch) | |
tree | 9f0f0e712388b834d2d07f296f1f7f9c67aff567 /include | |
parent | 263170e679dfb456f8812a0100073990586cecb5 (diff) |
migration: Add the framework of multi-thread compression
Add the code to create and destroy the multiple threads those will
be used to do data compression. Left some functions empty to keep
clearness, and the code will be added later.
Signed-off-by: Liang Li <liang.z.li@intel.com>
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Reviewed-by: Dr.David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/migration.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index bf09968d76..a3ebbf6c6e 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -50,6 +50,8 @@ struct MigrationState QemuThread thread; QEMUBH *cleanup_bh; QEMUFile *file; + int compress_thread_count; + int compress_level; int state; MigrationParams params; @@ -104,6 +106,8 @@ bool migration_has_finished(MigrationState *); bool migration_has_failed(MigrationState *); MigrationState *migrate_get_current(void); +void migrate_compress_threads_create(void); +void migrate_compress_threads_join(void); uint64_t ram_bytes_remaining(void); uint64_t ram_bytes_transferred(void); uint64_t ram_bytes_total(void); @@ -152,6 +156,10 @@ int64_t migrate_xbzrle_cache_size(void); int64_t xbzrle_cache_resize(int64_t new_size); +bool migrate_use_compression(void); +int migrate_compress_level(void); +int migrate_compress_threads(void); + void ram_control_before_iterate(QEMUFile *f, uint64_t flags); void ram_control_after_iterate(QEMUFile *f, uint64_t flags); void ram_control_load_hook(QEMUFile *f, uint64_t flags); |