OSDN Git Service

migration: Give one error if trying to set MULTIFD and XBZRLE
authorJuan Quintela <quintela@redhat.com>
Thu, 19 Oct 2023 11:07:14 +0000 (13:07 +0200)
committerJuan Quintela <quintela@redhat.com>
Mon, 30 Oct 2023 16:41:55 +0000 (17:41 +0100)
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231019110724.15324-2-quintela@redhat.com>

migration/options.c

index 42fb818..b8c3c32 100644 (file)
@@ -618,6 +618,13 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp)
         }
     }
 
+    if (new_caps[MIGRATION_CAPABILITY_MULTIFD]) {
+        if (new_caps[MIGRATION_CAPABILITY_XBZRLE]) {
+            error_setg(errp, "Multifd is not compatible with xbzrle");
+            return false;
+        }
+    }
+
     return true;
 }