diff options
author | Juan Quintela <quintela@redhat.com> | 2023-10-19 13:07:15 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-30 17:41:55 +0100 |
commit | 0e195629969125e3a168a7e06e3c49d939c36ead (patch) | |
tree | a11f53a9b9d13be4394ea6c8b6d08e4645716774 | |
parent | d869f6297522894ef6c184dbe47b923360faf9e5 (diff) | |
download | qemu-0e195629969125e3a168a7e06e3c49d939c36ead.zip qemu-0e195629969125e3a168a7e06e3c49d939c36ead.tar.gz qemu-0e195629969125e3a168a7e06e3c49d939c36ead.tar.bz2 |
migration: Give one error if trying to set COMPRESSION and XBZRLE
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231019110724.15324-3-quintela@redhat.com>
-rw-r--r-- | migration/options.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c index b8c3c32..37fa1cf 100644 --- a/migration/options.c +++ b/migration/options.c @@ -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; } |