migration/migration.c: Add COLO dependency checks
PATCH 1/1 migration/migration.c: Add COLO dependency checks
From: Zhang Chen <[email protected]>
Current COLO mode(independent disk mode) need replication module work together. Suggested by Dr. David Alan Gilbert <[email protected]>.
--- migration/migration.c | 9 +++++++++ 1 file changed, 9 insertions(+)
migration/migration.c +9 -0
@@ -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
Signature · 1 line
2.17.GIT
Quoted 6 lines · Zhang Chen
From: Zhang Chen <[email protected]>
Current COLO mode(independent disk mode) need replication module work together. Suggested by Dr. David Alan Gilbert <[email protected]>.
Signed-off-by Zhang Chen <[email protected]>
Regards,
Signature · 1 line
Peter Xu
Quoted 11 lines · Peter Xu
Quoted 6 lines · Zhang Chen
From: Zhang Chen <[email protected]>
Current COLO mode(independent disk mode) need replication module work together. Suggested by Dr. David Alan Gilbert <[email protected]>.
Signed-off-by Zhang Chen <[email protected]>Reviewed-by Peter Xu <[email protected]>
Thanks Peter,
any comments from others?
Thanks
Zhang Chen
Quoted 6 lines
Regards,
--
Peter Xu
Quoted 6 lines · * Zhang Chen ([email protected]) wrote:
From: Zhang Chen <[email protected]>
Current COLO mode(independent disk mode) need replication module work together. Suggested by Dr. David Alan Gilbert <[email protected]>.
Signed-off-by Zhang Chen <[email protected]>
Queued
Quoted 28 lines
--- migration/migration.c | 9 +++++++++ 1 file changed, 9 insertions(+)migration/migration.c +9
-0@@ -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 Signature · 1 line
2.17.GIT
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK