From 6607ae235bbc8c8c23159c21f545e7622489a236 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Tue, 19 Jun 2012 18:43:09 +0300 Subject: Add MigrationParams structure Signed-off-by: Isaku Yamahata --- block-migration.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'block-migration.c') diff --git a/block-migration.c b/block-migration.c index fd2ffff0d5..b95b4e1389 100644 --- a/block-migration.c +++ b/block-migration.c @@ -700,13 +700,13 @@ static int block_load(QEMUFile *f, void *opaque, int version_id) return 0; } -static void block_set_params(int blk_enable, int shared_base, void *opaque) +static void block_set_params(const MigrationParams *params, void *opaque) { - block_mig_state.blk_enable = blk_enable; - block_mig_state.shared_base = shared_base; + block_mig_state.blk_enable = params->blk; + block_mig_state.shared_base = params->shared; /* shared base means that blk_enable = 1 */ - block_mig_state.blk_enable |= shared_base; + block_mig_state.blk_enable |= params->shared; } void blk_mig_init(void) -- cgit v1.2.3