projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d869f62
)
migration: Give one error if trying to set COMPRESSION and XBZRLE
author
Juan Quintela
<quintela@redhat.com>
Thu, 19 Oct 2023 11:07:15 +0000
(13:07 +0200)
committer
Juan 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-3-quintela@redhat.com>
migration/options.c
patch
|
blob
|
history
diff --git
a/migration/options.c
b/migration/options.c
index b8c3c3218dd034b6373751fa0e3f31cd31790580..37fa1cfe742718e9ef6791624083c073bff0dc02 100644
(file)
--- 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;
}