aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-10-03 18:23:03 +0200
committerJuan Quintela <quintela@redhat.com>2012-12-20 23:09:39 +0100
commit2e450865338738300e529457879d81332939f064 (patch)
treefd4851dc8681e3175fbd671e2c8e0ee53292865b /migration.c
parent0e288fa369c02df1731dc59ffbf158f5e5f2d80f (diff)
downloadqemu-2e450865338738300e529457879d81332939f064.zip
qemu-2e450865338738300e529457879d81332939f064.tar.gz
qemu-2e450865338738300e529457879d81332939f064.tar.bz2
migration: Inline qemu_fopen_ops_buffered into migrate_fd_connect
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/migration.c b/migration.c
index a387201..4a9f0b5 100644
--- a/migration.c
+++ b/migration.c
@@ -371,13 +371,6 @@ bool migration_has_failed(MigrationState *s)
s->state == MIG_STATE_ERROR);
}
-void migrate_fd_connect(MigrationState *s)
-{
- s->state = MIG_STATE_ACTIVE;
- s->first_time = true;
- qemu_fopen_ops_buffered(s);
-}
-
static MigrationState *migrate_init(const MigrationParams *params)
{
MigrationState *s = migrate_get_current();
@@ -803,10 +796,12 @@ static const QEMUFileOps buffered_file_ops = {
.set_rate_limit = buffered_set_rate_limit,
};
-void qemu_fopen_ops_buffered(MigrationState *migration_state)
+void migrate_fd_connect(MigrationState *migration_state)
{
QEMUFileBuffered *s;
+ migration_state->state = MIG_STATE_ACTIVE;
+ migration_state->first_time = true;
s = g_malloc0(sizeof(*s));
s->migration_state = migration_state;