aboutsummaryrefslogtreecommitdiff
path: root/migration/channel.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-07-24 12:42:02 +0200
committerJuan Quintela <quintela@redhat.com>2017-09-22 14:11:17 +0200
commit4f0fae7f2bbd09f7a70f678e8db1763d12e5d896 (patch)
treed895efffdc7ae1ee272eec343ba1560574dfa36e /migration/channel.c
parenta664607440511fdf8cff9d1c2afefbdbca1d1295 (diff)
migration: Create migration_ioc_process_incoming()
We pass the ioc instead of the fd. This will allow us to have more than one channel open. We also make sure that we set the from_src_file sooner, so we don't need to pass it as a parameter. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> -- Do not assing mis->from_src_file (peterxu)
Diffstat (limited to 'migration/channel.c')
-rw-r--r--migration/channel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/migration/channel.c b/migration/channel.c
index 3b7252f5a2..edceebdb7b 100644
--- a/migration/channel.c
+++ b/migration/channel.c
@@ -36,8 +36,7 @@ void migration_channel_process_incoming(QIOChannel *ioc)
error_report_err(local_err);
}
} else {
- QEMUFile *f = qemu_fopen_channel_input(ioc);
- migration_fd_process_incoming(f);
+ migration_ioc_process_incoming(ioc);
}
}