Juan Quintela <[email protected]> wrote:
> "Dr. David Alan Gilbert" <[email protected]> wrote:
>> * Dr. David Alan Gilbert ([email protected]) wrote:
>>> * Juan Quintela ([email protected]) 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.