migration: New postcopy state, and some cleanups
Status from this message: Queued, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest11 patches 4 repliesApplied
- v210 patches 13 repliesSuperseded
- v14 patches 12 repliesSuperseded
Changes in v3 from the cover letter
- Added one comment in patch 8 explaining why migrate_incoming_qmp() needs to keep enabling "events" capability.
- Split patch 9 into two patches, which makes migration_event_wait() to be used also in migrate_incoming_qmp()
- Rename the tests in last patch, and a spell fix
- Rebased to "[PATCH v3 00/16] migration/mapped-ram: Add direct-io support"
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | migration/multifd: Avoid the final FLUSH in complete()migration/ | +0 | 0 replies | |
| 2/11 | migration: Rename thread debug namesmigration/ migration/ migration/ +2 more | +10 | 0 replies | |
| 3/11 | migration: Use MigrationStatus instead of intmigration/ migration/ | +12 | 0 replies | |
| 4/11 | migration: Cleanup incoming migration setup state changemigration/ | +26 | 0 replies | |
| 5/11 | migration/postcopy: Add postcopy-recover-setup phasemigration/ migration/ migration/ +2 more | +49 | 0 replies | |
| 6/11 | migration/docs: Update postcopy recover session for SETUP phasedocs/ | +16 | 0 replies | |
| 7/11 | tests/migration-tests: Drop most WIN32 ifdefs for postcopy failure teststests/ | +2 | 0 replies | |
| 8/11 | tests/migration-tests: Always enable migration eventstests/ tests/ | +8 | 1 reply | |
| 9/11 | tests/migration-tests: migration_event_wait()tests/ tests/ | +24 | 1 reply | |
| 10/11 | tests/migration-tests: Verify postcopy-recover-setup statustests/ | +6 | 1 reply | |
| 11/11 | tests/migration-tests: Cover postcopy failure on reconnecttests/ | +77 | 0 replies |
Reviews trailers per patch
All 11 patches have a Reviewed-by or Acked-by.
| Patch | Fabiano Rosas | Zhijian Li (Fujitsu) |
|---|---|---|
| 1/11 | R-b T-b | |
| 2/11 | R-b | R-b |
| 3/11 | R-b | |
| 4/11 | R-b | |
| 5/11 | R-b | |
| 6/11 | R-b | |
| 7/11 | R-b | |
| 8/11 | R-b | |
| 9/11 | R-b | |
| 10/11 | R-b | |
| 11/11 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/11] migration: New postcopy state, and some cleanups
Based-on: <[email protected]>
v3:
- Added one comment in patch 8 explaining why migrate_incoming_qmp() needs to keep enabling "events" capability.
- Split patch 9 into two patches, which makes migration_event_wait() to be used also in migrate_incoming_qmp()
- Rename the tests in last patch, and a spell fix
- Rebased to "[PATCH v3 00/16] migration/mapped-ram: Add direct-io support"
v1: https://lore.kernel.org/r/[email protected]
v2: https://lore.kernel.org/r/[email protected]
The major goal of this patchset is patch 5, which introduced a new postcopy state so that we will send an event in postcopy reconnect failures that Libvirt would prefer to have. There's more information for that issue in the commit message alone.
Patch 1-2 are cleanups that are not directly relevant but I found/stored that could be good to have. I made it simple by putting them together in one thread to make patch management easier, but I can send them separately when necessary.
Patch 3 is also a cleanup, but will be needed for patch 4 as dependency.
Patch 4-5 is the core patches.
Patch 6 updates doc for the new state.
Patch 7-11 adds a new test for the new state.
CI: https://gitlab.com/peterx/qemu/-/pipelines/1339544694
Comments welcomed, thanks.
Peter Xu (11):
migration/multifd: Avoid the final FLUSH in complete()
migration: Rename thread debug names
migration: Use MigrationStatus instead of int
migration: Cleanup incoming migration setup state change migration/postcopy: Add postcopy-recover-setup phase migration/docs: Update postcopy recover session for SETUP phase tests/migration-tests: Drop most WIN32 ifdefs for postcopy failure
tests
tests/migration-tests: Always enable migration events tests/migration-tests: migration_event_wait() tests/migration-tests: Verify postcopy-recover-setup status tests/migration-tests: Cover postcopy failure on reconnect
docs/devel/migration/postcopy.rst | 31 ++++---- qapi/migration.json | 4 ++ migration/migration.h | 9 +-- migration/postcopy-ram.h | 3 + tests/qtest/migration-helpers.h | 2 + migration/colo.c | 2 +- migration/migration.c | 98 +++++++++++++++++-------- migration/multifd.c | 6 +- migration/postcopy-ram.c | 10 ++- migration/ram.c | 4 -- migration/savevm.c | 6 +- tests/qtest/migration-helpers.c | 32 ++++++--- tests/qtest/migration-test.c | 116 +++++++++++++++++++++++------- 13 files changed, 229 insertions(+), 94 deletions(-)
Signature · 1 line
2.45.0