Paolo Bonzini <pbonz...@redhat.com> wrote:
> Right now, migration cannot entirely rely on QEMUFile's automatic
> drop of I/O after an error, because it does its "real" I/O outside
> the put_buffer callback.  To fix this until buffering is gone, expose
> qemu_file_set_error which we will use in buffered_flush.
>
> Similarly, buffered_flush is not a complete flush because some data may
> still reside in the QEMUFile's own buffer.  This somewhat complicates the
> process of closing the migration thread.  Again, when buffering is gone
> buffered_flush will disappear and calling qemu_fflush will not be needed;
> in the meanwhile, we expose the function for use in migration.c.
>
> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>

Reviewed-by: Juan Quintela <quint...@redhat.com>

Reply via email to