mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
ec6f9f135d
commit
b88a3306fd
1 changed files with 12 additions and 0 deletions
|
@ -447,6 +447,18 @@ static void qemu_start_incoming_migration(const char *uri, Error **errp)
|
||||||
socket_start_incoming_migration(p ? p : uri, errp);
|
socket_start_incoming_migration(p ? p : uri, errp);
|
||||||
#ifdef CONFIG_RDMA
|
#ifdef CONFIG_RDMA
|
||||||
} else if (strstart(uri, "rdma:", &p)) {
|
} 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);
|
rdma_start_incoming_migration(p, errp);
|
||||||
#endif
|
#endif
|
||||||
} else if (strstart(uri, "exec:", &p)) {
|
} else if (strstart(uri, "exec:", &p)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue