diff options
author | Juan Quintela <quintela@redhat.com> | 2017-07-24 12:42:02 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-09-22 14:11:17 +0200 |
commit | 4f0fae7f2bbd09f7a70f678e8db1763d12e5d896 (patch) | |
tree | d895efffdc7ae1ee272eec343ba1560574dfa36e /migration/channel.c | |
parent | a664607440511fdf8cff9d1c2afefbdbca1d1295 (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.c | 3 |
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); } } |