migration: allow send_rq to fail
commitd6208e35e4a228fb07bac60095c5fac706c3fde7
authorPeter Xu <peterx@redhat.com>
Thu, 8 Feb 2018 10:31:12 +0000 (8 18:31 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 14 Feb 2018 10:36:52 +0000 (14 10:36 +0000)
treeae8fa2b293975e6eb841e1f7968c75dc1b34ccb2
parent9ab7ef9b66661819086db9d2ca04e22408e5ca16
migration: allow send_rq to fail

We will not allow failures to happen when sending data from destination
to source via the return path. However it is possible that there can be
errors along the way.  This patch allows the migrate_send_rp_message()
to return error when it happens, and further extended it to
migrate_send_rp_req_pages().

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180208103132.28452-9-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c
migration/migration.h