mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user