Skip to content

migration: Better error handling in rp thread, allow failures in recover

Peter Xu qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 11 repliesIn review
  2. v310 patches 24 repliesSuperseded
  3. v211 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches9 repliesSuperseded

Changes in v4 from the cover letter

- Some patches merged, reposting the rest patches
- Fixed a bug in the new test case reported by Fabiano
- Try to keep close_return_path_on_source() return a value (even though it still fetches from migrate_has_error)
- Two more patches added to cleanup retval of rp thread functions

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5migration: Refactor error handling in source return pathmigration/migration.c migration/migration.h migration/qemu-file.c +4 more+80 -952 replies
2/5migration: Allow network to fail even during recoverymigration/migration.c migration/migration.h migration/ram.c+67 -82 replies
3/5tests/migration-test: Add a test for postcopy hangs during RECOVERtests/qtest/migration-test.c+96 -63 replies
4/5migration: Change ram_dirty_bitmap_reload() retval to boolmigration/migration.c migration/ram.c migration/ram.h+22 -222 replies
5/5migration: Change ram_save_queue_pages() retval to boolmigration/migration.c migration/ram.c migration/ram.h+19 -192 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchFabiano RosasJuan Quintela
1/5R-b R-b
2/5R-b R-b
3/5
4/5R-b R-b
5/5R-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/5] migration: Better error handling in rp thread, allow failures in recover

v4:
- Some patches merged, reposting the rest patches
- Fixed a bug in the new test case reported by Fabiano
- Try to keep close_return_path_on_source() return a value (even though it still fetches from migrate_has_error)
- Two more patches added to cleanup retval of rp thread functions

v1: https://lore.kernel.org/r/[email protected]
v2: https://lore.kernel.org/r/[email protected]
v3: https://lore.kernel.org/r/[email protected]

This series allow better error handling in the postcopy return path thread, so that we'll start to store the errors in MigrationState and can be seen from query-migrate later, comparing to before where we do error_report() and never remember the error.

Meanwhile, it allows double-failures to happen during postcopy recovery, IOW, one can fail again right during RECOVER phase on both sides, even if RECOVER phase should be an extremely small window.

Please have a look, thanks.

Fabiano Rosas (1):
tests/migration-test: Add a test for postcopy hangs during RECOVER

Peter Xu (4):
migration: Refactor error handling in source return path
migration: Allow network to fail even during recovery
migration: Change ram_dirty_bitmap_reload() retval to bool
migration: Change ram_save_queue_pages() retval to bool

 migration/migration.h        |   9 +-
 migration/qemu-file.h        |   1 +
 migration/ram.h              |   5 +-
 migration/migration.c        | 190 +++++++++++++++++++++--------------
 migration/qemu-file.c        |   2 +-
 migration/ram.c              |  75 +++++++-------
 tests/qtest/migration-test.c | 102 +++++++++++++++++--
 migration/trace-events       |   4 +-
 8 files changed, 261 insertions(+), 127 deletions(-)
Signature · 1 line
2.41.0