summaryrefslogtreecommitdiff
path: root/block-migration.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2012-06-19 18:43:09 +0300
committerJuan Quintela <quintela@redhat.com>2012-06-29 13:18:21 +0200
commit6607ae235bbc8c8c23159c21f545e7622489a236 (patch)
tree1139888b50b29d219e0c7418d62aaa3dfb60227d /block-migration.c
parent0ff1f9f585712684dc46cb6cb6a46a8cc160b2ae (diff)
downloadqemu-6607ae235bbc8c8c23159c21f545e7622489a236.tar.gz
qemu-6607ae235bbc8c8c23159c21f545e7622489a236.tar.bz2
qemu-6607ae235bbc8c8c23159c21f545e7622489a236.zip
Add MigrationParams structure
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'block-migration.c')
-rw-r--r--block-migration.c8
1 files changed, 4 insertions, 4 deletions
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)