]> git.proxmox.com Git - mirror_qemu.git/commit
migration: loosen recovery check when load vm
authorPeter Xu <peterx@redhat.com>
Tue, 10 Jul 2018 09:18:54 +0000 (17:18 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 10 Jul 2018 11:56:07 +0000 (12:56 +0100)
commitfd037a656aca23dc3c47aa8c9de261bec6b8aad0
tree89bb2c422334e3e1262e68f9cbf562ecfcd80429
parent1aa8367861645c3c0917f585fe14b1b6b23b0f66
migration: loosen recovery check when load vm

We were checking against -EIO, assuming that it will cover all IO
failures.  But actually it is not.  One example is that in
qemu_loadvm_section_start_full() we can have tons of places that will
return -EINVAL even if the error is caused by IO failures on the
network.

Let's loosen the recovery check logic here to cover all the error cases
happened by removing the explicit check against -EIO.  After all we
won't lose anything here if any other failure happened.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180710091902.28780-3-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/savevm.c