diff options
author | Juan Quintela <quintela@redhat.com> | 2023-10-19 13:07:14 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-30 17:41:55 +0100 |
commit | d869f6297522894ef6c184dbe47b923360faf9e5 (patch) | |
tree | b12b1df39a8cd57799580be6b95b618a111de36a /migration/options.c | |
parent | 7091dabeb41806132428ffe96164c8425854ea27 (diff) | |
download | qemu-d869f6297522894ef6c184dbe47b923360faf9e5.zip qemu-d869f6297522894ef6c184dbe47b923360faf9e5.tar.gz qemu-d869f6297522894ef6c184dbe47b923360faf9e5.tar.bz2 |
migration: Give one error if trying to set MULTIFD and XBZRLE
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231019110724.15324-2-quintela@redhat.com>
Diffstat (limited to 'migration/options.c')
-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 42fb818..b8c3c32 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; } |