From 43c60a81ba15ea040709be5809a279a4ca59b26b Mon Sep 17 00:00:00 2001 From: Liang Li Date: Mon, 23 Mar 2015 16:32:27 +0800 Subject: 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 Signed-off-by: Yang Zhang Signed-off-by: Juan Quintela --- include/migration/migration.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/migration/migration.h') 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; -- cgit 1.4.1