summaryrefslogtreecommitdiffstats
path: root/migration
diff options
context:
space:
mode:
authorZhang Chen2018-11-14 20:09:12 +0100
committerDr. David Alan Gilbert2018-11-21 12:38:12 +0100
commit7e934f5b27eee1b0d77be3dcf1fd18d4ccc602cc (patch)
treebc5b4ddabcea3e7aeeb21ed43e31988926f558ce /migration
parentmigration/colo.c: Fix compilation issue when disable replication (diff)
downloadqemu-7e934f5b27eee1b0d77be3dcf1fd18d4ccc602cc.tar.gz
qemu-7e934f5b27eee1b0d77be3dcf1fd18d4ccc602cc.tar.xz
qemu-7e934f5b27eee1b0d77be3dcf1fd18d4ccc602cc.zip
migration/migration.c: Add COLO dependency checks
Current COLO mode(independent disk mode) need replication module work together. Suggested by Dr. David Alan Gilbert <dgilbert@redhat.com>. Signed-off-by: Zhang Chen <chen.zhang@intel.com> Message-Id: <20181114190912.7242-1-chen.zhang@intel.com> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r--migration/migration.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c
index b261c1e4ce..49ffb9997a 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -918,6 +918,15 @@ static bool migrate_caps_check(bool *cap_list,
}
#endif
+#ifndef CONFIG_REPLICATION
+ if (cap_list[MIGRATION_CAPABILITY_X_COLO]) {
+ error_setg(errp, "QEMU compiled without replication module"
+ " can't enable COLO");
+ error_append_hint(errp, "Please enable replication before COLO.\n");
+ return false;
+ }
+#endif
+
if (cap_list[MIGRATION_CAPABILITY_POSTCOPY_RAM]) {
if (cap_list[MIGRATION_CAPABILITY_COMPRESS]) {
/* The decompression threads asynchronously write into RAM