• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版eeeb48ee3389e837428370a8ed2772c2e74cce49 (tree)
时间2022-01-28 23:38:23
作者Zhang Chen <chen.zhang@inte...>
CommiterJuan Quintela

Log Message

migration/migration.c: Avoid COLO boot in postcopy migration

COLO dose not support postcopy migration and remove the Fixme.

Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>

更改概述

差异

--- a/migration/migration.c
+++ b/migration/migration.c
@@ -3230,7 +3230,11 @@ static void migration_completion(MigrationState *s)
32303230 goto fail_invalidate;
32313231 }
32323232
3233- if (!migrate_colo_enabled()) {
3233+ if (migrate_colo_enabled() && s->state == MIGRATION_STATUS_ACTIVE) {
3234+ /* COLO does not support postcopy */
3235+ migrate_set_state(&s->state, MIGRATION_STATUS_ACTIVE,
3236+ MIGRATION_STATUS_COLO);
3237+ } else {
32343238 migrate_set_state(&s->state, current_active_state,
32353239 MIGRATION_STATUS_COMPLETED);
32363240 }
@@ -3621,10 +3625,6 @@ static void migration_iteration_finish(MigrationState *s)
36213625 "COLO enabled", __func__);
36223626 }
36233627 migrate_start_colo_process(s);
3624- /*
3625- * Fixme: we will run VM in COLO no matter its old running state.
3626- * After exited COLO, we will keep running.
3627- */
36283628 /* Fallthrough */
36293629 case MIGRATION_STATUS_ACTIVE:
36303630 /*