migration: hardcode assumption that QEMUFile is backed with QIOChannel
commit2893a2884b1deb09af51f4377f1aaf29b28b0c93
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 20 Jun 2022 11:01:56 +0000 (20 12:01 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 22 Jun 2022 18:33:43 +0000 (22 19:33 +0100)
tree0784a3770926923ccc5e27dd7f4e5f6beea33048
parent365c0463db9382130c7201c5c91021fe84bf5f77
migration: hardcode assumption that QEMUFile is backed with QIOChannel

The only callers of qemu_fopen_ops pass 'true' for the 'has_ioc'
parameter, so hardcode this assumption in QEMUFile, by passing in
the QIOChannel object as a non-opaque parameter.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
   dgilbert: Fixed long line
migration/qemu-file-channel.c
migration/qemu-file.c
migration/qemu-file.h