migration/rdma: Fix return-path case
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 14 Mar 2023 17:15:58 +0000 (17:15 +0000)
committerJuan Quintela <quintela@redhat.com>
Thu, 16 Mar 2023 15:07:07 +0000 (16:07 +0100)
commita5382214d8b099bb2fe60b206097567762861800
tree1daa9e9aba14dc64da7772fb0dd205cf6505399e
parenta5d35dc7e06896a33216610cc86527258735b0e3
migration/rdma: Fix return-path case

The RDMA code has return-path handling code, but it's only enabled
if postcopy is enabled; if the 'return-path' migration capability
is enabled, the return path is NOT setup but the core migration
code still tries to use it and breaks.

Enable the RDMA return path if either postcopy or the return-path
capability is enabled.

bz: https://bugzilla.redhat.com/show_bug.cgi?id=2063615

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/rdma.c