diff options
author | Peter Xu <peterx@redhat.com> | 2018-02-08 18:31:12 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-02-14 10:36:52 +0000 |
commit | d6208e35e4a228fb07bac60095c5fac706c3fde7 (patch) | |
tree | ae8fa2b293975e6eb841e1f7968c75dc1b34ccb2 /migration/migration.h | |
parent | 9ab7ef9b66661819086db9d2ca04e22408e5ca16 (diff) |
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>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/migration.h b/migration/migration.h index 75c72d3c8f..f515b8994f 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -230,7 +230,7 @@ void migrate_send_rp_shut(MigrationIncomingState *mis, uint32_t value); void migrate_send_rp_pong(MigrationIncomingState *mis, uint32_t value); -void migrate_send_rp_req_pages(MigrationIncomingState *mis, const char* rbname, +int migrate_send_rp_req_pages(MigrationIncomingState *mis, const char* rbname, ram_addr_t start, size_t len); #endif |