mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
migration: Add the framework of multi-thread decompression
Add the code to create and destroy the multiple threads those will be used to do data decompression. Left some functions empty just 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>
This commit is contained in:
parent
8706d2d566
commit
3fcb38c223
3 changed files with 100 additions and 0 deletions
|
@ -51,6 +51,7 @@ struct MigrationState
|
|||
QEMUBH *cleanup_bh;
|
||||
QEMUFile *file;
|
||||
int compress_thread_count;
|
||||
int decompress_thread_count;
|
||||
int compress_level;
|
||||
|
||||
int state;
|
||||
|
@ -108,6 +109,8 @@ MigrationState *migrate_get_current(void);
|
|||
|
||||
void migrate_compress_threads_create(void);
|
||||
void migrate_compress_threads_join(void);
|
||||
void migrate_decompress_threads_create(void);
|
||||
void migrate_decompress_threads_join(void);
|
||||
uint64_t ram_bytes_remaining(void);
|
||||
uint64_t ram_bytes_transferred(void);
|
||||
uint64_t ram_bytes_total(void);
|
||||
|
@ -159,6 +162,7 @@ int64_t xbzrle_cache_resize(int64_t new_size);
|
|||
bool migrate_use_compression(void);
|
||||
int migrate_compress_level(void);
|
||||
int migrate_compress_threads(void);
|
||||
int migrate_decompress_threads(void);
|
||||
|
||||
void ram_control_before_iterate(QEMUFile *f, uint64_t flags);
|
||||
void ram_control_after_iterate(QEMUFile *f, uint64_t flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue