migration: Stop migration immediately in RDMA error paths
commita2326705e5a6bb21338b3d84f1b0e0b4f46cbc82
authorPeter Xu <peterx@redhat.com>
Tue, 24 Oct 2023 16:39:33 +0000 (24 12:39 -0400)
committerJuan Quintela <quintela@redhat.com>
Tue, 31 Oct 2023 07:44:33 +0000 (31 08:44 +0100)
tree6952a6c991b8d308bcf49d4134516fbba29ee3cb
parent864128df465a8b041e089475e903be8d7d0d06ef
migration: Stop migration immediately in RDMA error paths

In multiple places, RDMA errors are handled in a strange way, where it only
sets qemu_file_set_error() but not stop the migration immediately.

It's not obvious what will happen later if there is already an error.  Make
all such failures stop migration immediately.

Cc: Zhijian Li (Fujitsu) <lizhijian@fujitsu.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Juan Quintela <quintela@redhat.com>
Cc: Fabiano Rosas <farosas@suse.de>
Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231024163933.516546-1-peterx@redhat.com>
migration/ram.c