migration/rdma: Pass qemu_file errors across link
commit12c67ffb1fe34ff72a55fa440243c0dfcf22f89b
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 23 Sep 2016 19:14:02 +0000 (23 20:14 +0100)
committerJuan Quintela <quintela@trasno.org>
Thu, 13 Oct 2016 15:22:38 +0000 (13 17:22 +0200)
treed06b68975686067c3b5972c3a859526eff6fef64
parent49228e17edc3f9a7cef6061daffdcc3a33d8023d
migration/rdma: Pass qemu_file errors across link

If we fail for some reason (e.g. a mismatched RAMBlock)
and it's set the qemu_file error flag, pass that error back to the
peer so it can clean up rather than waiting for some higher level
progress.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael R. Hines <michael@hinespot.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/rdma.c