Skip to content
Snippets Groups Projects
Commit 0e195629 authored by Juan Quintela's avatar Juan Quintela
Browse files

migration: Give one error if trying to set COMPRESSION and XBZRLE


Reviewed-by: default avatarFabiano Rosas <farosas@suse.de>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
Message-ID: <20231019110724.15324-3-quintela@redhat.com>
parent d869f629
No related branches found
No related tags found
No related merge requests found
......@@ -625,6 +625,13 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp)
}
}
if (new_caps[MIGRATION_CAPABILITY_COMPRESS]) {
if (new_caps[MIGRATION_CAPABILITY_XBZRLE]) {
error_setg(errp, "Compression is not compatible with xbzrle");
return false;
}
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment