aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-06-13 16:57:42 +0200
committerJuan Quintela <quintela@redhat.com>2023-10-17 22:14:51 +0200
commitb88a3306fdfc768f09b2f2a56b739f3d054ce776 (patch)
treea519dd7c1d84c1759e8540245a0c696722596471 /migration
parentec6f9f135d5e5596ab0258da2ddd048f1fd8c359 (diff)
downloadqemu-b88a3306fdfc768f09b2f2a56b739f3d054ce776.zip
qemu-b88a3306fdfc768f09b2f2a56b739f3d054ce776.tar.gz
qemu-b88a3306fdfc768f09b2f2a56b739f3d054ce776.tar.bz2
migration: RDMA is not compatible with anything else
So give an error instead of just ignoring the other methods. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Lukas Straub <lukasstraub2@web.de> Message-ID: <20230613145757.10131-4-quintela@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/migration.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c
index 6ba5e14..81862fc 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -447,6 +447,18 @@ static void qemu_start_incoming_migration(const char *uri, Error **errp)
socket_start_incoming_migration(p ? p : uri, errp);
#ifdef CONFIG_RDMA
} else if (strstart(uri, "rdma:", &p)) {
+ if (migrate_compress()) {
+ error_setg(errp, "RDMA and compression can't be used together");
+ return;
+ }
+ if (migrate_xbzrle()) {
+ error_setg(errp, "RDMA and XBZRLE can't be used together");
+ return;
+ }
+ if (migrate_multifd()) {
+ error_setg(errp, "RDMA and multifd can't be used together");
+ return;
+ }
rdma_start_incoming_migration(p, errp);
#endif
} else if (strstart(uri, "exec:", &p)) {