Juan Quintela <quint...@redhat.com> wrote: > "Dr. David Alan Gilbert" <dgilb...@redhat.com> wrote: >> * Dr. David Alan Gilbert (dgilb...@redhat.com) wrote: >>> * Juan Quintela (quint...@redhat.com) wrote:
>> >> diff --git a/migration/qemu-file.c b/migration/qemu-file.c >> index 1e5543a279..bbb2b63927 100644 >> --- a/migration/qemu-file.c >> +++ b/migration/qemu-file.c >> @@ -63,11 +63,18 @@ struct QEMUFile { >> */ >> int qemu_file_shutdown(QEMUFile *f) >> { >> + int ret; >> + >> f->shutdown = true; >> if (!f->ops->shut_down) { >> return -ENOSYS; >> } >> - return f->ops->shut_down(f->opaque, true, true, NULL); >> + ret = f->ops->shut_down(f->opaque, true, true, NULL); >> + >> + if (!f->last_error) { >> + qemu_file_set_error(f, -EIO); >> + } >> + return ret; >> } >> >> /* >> >> >> seems to fix it for me. > > will gve it a try later. With this it passes my tests. Thanks a lot.