From: Juan Quintela Date: Thu, 19 Oct 2023 11:07:14 +0000 (+0200) Subject: migration: Give one error if trying to set MULTIFD and XBZRLE X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d869f6297522894ef6c184dbe47b923360faf9e5;p=qemu.git migration: Give one error if trying to set MULTIFD and XBZRLE Reviewed-by: Fabiano Rosas Signed-off-by: Juan Quintela Message-ID: <20231019110724.15324-2-quintela@redhat.com> --- diff --git a/migration/options.c b/migration/options.c index 42fb818956..b8c3c3218d 100644 --- a/migration/options.c +++ b/migration/options.c @@ -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; }