Skip to content

migration: Introduce POSTCOPY_DEVICE state

Juraj Marcin qemu-devel 4 versions – Applied

Status from this message: Queued, thanks Juraj.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 3 repliesApplied
  2. v37 patches 8 repliesApplied
  3. v24 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches28 repliesSuperseded

Changes in v4 from the cover letter

- fixes for failing qemu-iotest 194
- flush channel after sending CMD_PACKAGED data (new patch 1)
- POSTCOPY_DEVICE state is now used only if return-path is open

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/8migration: Flush migration channel after sending data of CMD_PACKAGEDmigration/savevm.c+1 -01 reply
2/8migration: Do not try to start VM if disk activation failsmigration/migration.c+24 -50 replies
3/8migration: Move postcopy_ram_listen_thread() to postcopy-ram.cmigration/postcopy-ram.c migration/postcopy-ram.h migration/savevm.c+107 -1070 replies
4/8migration: Introduce postcopy incoming setup and cleanup functionsmigration/migration.c migration/postcopy-ram.c migration/postcopy-ram.h +1 more+47 -270 replies
5/8migration: Refactor all incoming cleanup info migration_incoming_destroy()migration/migration.c migration/migration.h migration/postcopy-ram.c +1 more+49 -610 replies
6/8migration: Respect exit-on-error when migration fails before resumingmigration/postcopy-ram.c+6 -10 replies
7/8migration: Make postcopy listen thread joinablemigration/postcopy-ram.c+6 -20 replies
8/8migration: Introduce POSTCOPY_DEVICE statemigration/migration.c migration/migration.h migration/postcopy-ram.c +6 more+75 -111 reply

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchPeter Xu
1/8R-b
2/8
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/8] migration: Introduce POSTCOPY_DEVICE state

This series introduces a new POSTCOPY_DEVICE state that is active (both, on source and destination side), while the destination loads the device state. Before this series, if the destination machine failed during the device load, the source side would stay stuck POSTCOPY_ACTIVE with no way of recovery. With this series, if the migration fails while in POSTCOPY_DEVICE state, the source side can safely resume, as destination has not started yet.

RFC: https://lore.kernel.org/all/[email protected]/

V1: https://lore.kernel.org/all/[email protected]/

V2: https://lore.kernel.org/all/[email protected]/

V3: https://lore.kernel.org/all/[email protected]/

V4 changes:

- fixes for failing qemu-iotest 194
- flush channel after sending CMD_PACKAGED data (new patch 1)
- POSTCOPY_DEVICE state is now used only if return-path is open

Juraj Marcin (7):
migration: Flush migration channel after sending data of CMD_PACKAGED
migration: Move postcopy_ram_listen_thread() to postcopy-ram.c
migration: Introduce postcopy incoming setup and cleanup functions
migration: Refactor all incoming cleanup info
migration_incoming_destroy()
migration: Respect exit-on-error when migration fails before resuming
migration: Make postcopy listen thread joinable
migration: Introduce POSTCOPY_DEVICE state

Peter Xu (1):
migration: Do not try to start VM if disk activation fails

 migration/migration.c                 | 123 +++++++++++++-------
 migration/migration.h                 |   4 +
 migration/postcopy-ram.c              | 161 ++++++++++++++++++++++++++
 migration/postcopy-ram.h              |   3 +
 migration/savevm.c                    | 138 ++--------------------
 migration/savevm.h                    |   2 +
 migration/trace-events                |   3 +-
 qapi/migration.json                   |  10 +-
 tests/qemu-iotests/194                |   2 +-
 tests/qtest/migration/precopy-tests.c |   3 +-
 10 files changed, 275 insertions(+), 174 deletions(-)
Signature · 1 line
2.51.0