diff options
author | Peter Xu <peterx@redhat.com> | 2023-03-26 13:25:40 -0400 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-04-12 21:44:56 +0200 |
commit | 06064a671573580326b1f23a2afa2702c48d8e05 (patch) | |
tree | f2c8cb169bca3ee90e8e7f33ef144ee438e93498 /migration/migration.h | |
parent | 6621883f9398bc3f255968f0b4919e883bafb06c (diff) |
migration: Recover behavior of preempt channel creation for pre-7.2
In 8.0 devel window we reworked preempt channel creation, so that there'll
be no race condition when the migration channel and preempt channel got
established in the wrong order in commit 5655aab079.
However no one noticed that the change will also be not compatible with
older qemus, majorly 7.1/7.2 versions where preempt mode started to be
supported.
Leverage the same pre-7.2 flag introduced in the previous patch to recover
the behavior hopefully before 8.0 releases, so we don't break migration
when we migrate from 8.0 to older qemu binaries.
Fixes: 5655aab079 ("migration: Postpone postcopy preempt channel to be after main")
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h index 67baba2184..310ae8901b 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -384,12 +384,19 @@ struct MigrationState { * - postcopy preempt src QEMU instance will generate an EOS message at * the end of migration to shut the preempt channel on dest side. * + * - postcopy preempt channel will be created at the setup phase on src + QEMU. + * * When clear: * * - postcopy preempt src QEMU instance will _not_ generate an EOS * message at the end of migration, the dest qemu will shutdown the * channel itself. * + * - postcopy preempt channel will be created at the switching phase + * from precopy -> postcopy (to avoid race condtion of misordered + * creation of channels). + * * NOTE: See message-id <ZBoShWArKDPpX/D7@work-vm> on qemu-devel * mailing list for more information on the possible race. Everyone * should probably just keep this value untouched after set by the |