Skip to content

migration: Fix disorder of channel creations

Peter Xu qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 2 repliesIn review
  2. v23 patches 3 repliesSuperseded
  3. v15 patches 7 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4migration: Rework multi-channel checks on URImigration/migration.c migration/migration.h migration/multifd.c +1 more+28 -420 replies
2/4migration: Cleanup postcopy_preempt_setup()migration/migration.c migration/postcopy-ram.c migration/postcopy-ram.h+4 -141 reply
3/4migration: Add a semaphore to count PONGsmigration/migration.c migration/migration.h+9 -00 replies
4/4migration: Postpone postcopy preempt channel to be after mainmigration/migration.c migration/migration.h migration/postcopy-ram.c +2 more+82 -210 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchJuan Quintela
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] migration: Fix disorder of channel creations

v3
- Fix indent for uri_supports_multi_channels() [Juan]
- Rename migration_uri_validate() to migration_channels_and_uri_compatible() [Juan]
- Separate the changes to migrate_postcopy_preempt() into separate patch [Juan]

I can trigger disordered connections with preempt mode postcopy (1 out of a few attemps), which can cause migration to hang during precopy phase, if e.g. I set the NIC packet loss rate to 50%.

The last patch fixes the real ordering issue. For each of the patch, please refer to the commit message and comments in-code.

Any comment welcomed, thanks.

Peter Xu (4):
migration: Rework multi-channel checks on URI
migration: Cleanup postcopy_preempt_setup()
migration: Add a semaphore to count PONGs
migration: Postpone postcopy preempt channel to be after main

 migration/migration.c    | 122 ++++++++++++++++++++++++++-------------
 migration/migration.h    |  15 ++++-
 migration/multifd.c      |  12 +---
 migration/postcopy-ram.c |  31 +++++-----
 migration/postcopy-ram.h |   4 +-
 migration/savevm.c       |   6 +-
 6 files changed, 118 insertions(+), 72 deletions(-)
Signature · 1 line
2.37.3