diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-09-28 15:19:46 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-11 11:17:03 +0200 |
commit | 142bd685ae10e1354b579a92db02c473f57080f0 (patch) | |
tree | dc4bde8821d7e1bf4e67115e6d62541a8f45f548 /migration | |
parent | de3e05e8b9c21dd70c34b744d1b14ec5f5707512 (diff) | |
download | qemu-142bd685ae10e1354b579a92db02c473f57080f0.zip qemu-142bd685ae10e1354b579a92db02c473f57080f0.tar.gz qemu-142bd685ae10e1354b579a92db02c473f57080f0.tar.bz2 |
migration/rdma: Fix qemu_rdma_broken_ipv6_kernel() to set error
qemu_rdma_resolve_host() and qemu_rdma_dest_init() try addresses until
they find on that works. If none works, they return the first Error
set by qemu_rdma_broken_ipv6_kernel(), or else return a generic one.
qemu_rdma_broken_ipv6_kernel() neglects to set an Error when
ibv_open_device() fails. If a later address fails differently, we use
that Error instead, or else the generic one. Harmless enough, but
needs fixing all the same.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230928132019.2544702-21-armbru@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/rdma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/migration/rdma.c b/migration/rdma.c index 30e2c81..9c576bd 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -861,6 +861,8 @@ static int qemu_rdma_broken_ipv6_kernel(struct ibv_context *verbs, Error **errp) if (errno == EPERM) { continue; } else { + error_setg_errno(errp, errno, + "could not open RDMA device context"); return -EINVAL; } } |