diff options
author | Liang Li <liang.z.li@intel.com> | 2015-03-23 16:32:27 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2015-05-07 18:31:53 +0200 |
commit | 43c60a81ba15ea040709be5809a279a4ca59b26b (patch) | |
tree | 5d25cdadd81a1fa4988ba9fcb40d6c21e95453c6 /include | |
parent | dde4e694ae576462990b2ce711e62565e085c261 (diff) |
migration: Use an array instead of 3 parameters
Put the three parameters related to multiple thread (de)compression
into an int array, and use an enum type to index the parameter.
Signed-off-by: Liang Li <liang.z.li@intel.com>
Signed-off-by: Yang Zhang <yang.z.zhang@intel.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/migration/migration.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h index d4a10627cd..a6e025a248 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -50,9 +50,7 @@ struct MigrationState QemuThread thread; QEMUBH *cleanup_bh; QEMUFile *file; - int compress_thread_count; - int decompress_thread_count; - int compress_level; + int parameters[MIGRATION_PARAMETER_MAX]; int state; MigrationParams params; |