mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06: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:
parent
dde4e694ae
commit
43c60a81ba
3 changed files with 43 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue