Paolo Bonzini <pbonz...@redhat.com> wrote: > Always use qemu_file_get_error to detect errors, since that is how > QEMUFile itself drops I/O after an error occurs. There is no need > to propagate and check return values all the time. > > Also remove the "complete" member, since we know that it is set (via > migrate_fd_cleanup) only when the state changes. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
This move buffered_flush() to inside the iothread lock. At least the commit message needs to be changed. Looking at the rest of the series before thinking if that is the right approach. Later, Juan.