migration: Add COLO multifd support and COLO migration unit test
Get series with b4
b4 am [email protected] change-id 20251230-colo_unit_test_multifd-8bf58dcebd46Versions newest first
- v11 Latest posting 5/521 patches 10 repliesIn review
- v11 posting 4/519 of 21 patches 0 repliesSuperseded
- v11 posting 3/521 patches 0 repliesSuperseded
Earlier versions · 12
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v11 posting 2/5 | 19 of 21 patches | 0 replies | Superseded | |
| v11 posting 1/5 | 19 of 21 patches | 0 replies | Superseded | |
| v10 | 19 patches | 7 replies | Superseded | |
| v9 | 19 patches | 3 replies | Superseded | |
| v8 | 17 patches | 5 replies | Applied | |
| v7 | 18 patches | 0 replies | Superseded | |
| v6 | 18 patches | 3 replies | Superseded | |
| v5 | 16 patches | 16 replies | Superseded | |
| v4 | 16 patches | 10 replies | Superseded | |
| v3 | 10 patches | 26 replies | Superseded | |
| v2 | 8 patches | 17 replies | Superseded | |
| v1 | 3 patches | 13 replies | Superseded |
Changes in v11 from the cover letter
- Use colo with return-path capability
- Link to v10: https://lore.kernel.org/qemu-devel/[email protected]
Patches in v11 posting 5/5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | MAINTAINERS: Add myself as maintainer for COLO migration frameworkMAINTAINERS | +1 | 0 replies | |
| 2/21 | MAINTAINERS: Remove Hailiang Zhang from COLO migration frameworkMAINTAINERS | +0 | 1 reply | |
| 3/21 | colo: Setup ram cache in normal migration pathmigration/ migration/ | +15 | 0 replies | |
| 4/21 | colo: Replace migration_incoming_colo_enabled() with migrate_colo()include/ migration/ migration/ +1 more | +4 | 0 replies | |
| 5/21 | colo: Remove ENABLE_COLO savevm command and mark it as deprecatedinclude/ migration/ migration/ +2 more | +5 | 0 replies | |
| 6/21 | ram: Remove colo special-casingmigration/ | +5 | 0 replies | |
| 7/21 | multifd: Move ram state receive into multifd_ram_state_recv()migration/ | +10 | 0 replies | |
| 8/21 | multifd: Add COLO supportMAINTAINERS migration/ migration/ +4 more | +93 | 0 replies | |
| 9/21 | Call colo_release_ram_cache() after multifd threads terminatemigration/ migration/ | +3 | 0 replies | |
| 10/21 | colo: Fix crash during device vmstate loadmigration/ | +6 | 0 replies | |
| 11/21 | colo: Hold the BQL while sending ram statemigration/ | +2 | 0 replies | |
| 12/21 | colo: Do not hold the BQL while receiving ram state.migration/ | +2 | 0 replies | |
| 13/21 | migration-test: Add COLO migration unit testMAINTAINERS tests/ tests/ +2 more | +211 | 4 replies | |
| 14/21 | Convert colo main documentation to restructuredTextMAINTAINERS docs/ docs/ +1 more | +362 | 0 replies | |
| 15/21 | qemu-colo.rst: Miscellaneous changesdocs/ | +18 | 0 replies | |
| 16/21 | qemu-colo.rst: Add my copyrightdocs/ | +1 | 0 replies | |
| 17/21 | qemu-colo.rst: Simplify the block replication setupdocs/ | +7 | 0 replies | |
| 18/21 | multifd: Fix hang if send thread errors during syncmigration/ | +6 | 0 replies | |
| 19/21 | colo: Use file lock in primary_vm_do_failover()migration/ | +7 | 1 reply | |
| 20/21 | migration: Keep s->rp_state.from_dst_file open until migration endsmigration/ | +12 | 1 reply | |
| 21/21 | colo: Reuse the return path from migration on primary and secondary sidedocs/ migration/ migration/ +2 more | +34 | 1 reply |
Reviews trailers per patch
All 21 patches have a Reviewed-by or Acked-by.
| Patch | Fabiano Rosas | Peter Xu | Zhang Chen |
|---|---|---|---|
| 1/21 | R-b | R-b | |
| 2/21 | R-b | R-b | |
| 3/21 | R-b | R-b | |
| 4/21 | R-b | R-b | |
| 5/21 | R-b | R-b | |
| 6/21 | R-b | R-b | |
| 7/21 | R-b | R-b | |
| 8/21 | R-b | R-b | |
| 9/21 | R-b | R-b | |
| 10/21 | R-b | ||
| 11/21 | R-b | ||
| 12/21 | R-b | ||
| 13/21 | R-b T-b | R-b | |
| 14/21 | R-b | R-b | |
| 15/21 | R-b | R-b | |
| 16/21 | R-b | R-b | |
| 17/21 | R-b | ||
| 18/21 | R-b | ||
| 19/21 | R-b | ||
| 20/21 | R-b | ||
| 21/21 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v11 00/21] migration: Add COLO multifd support and COLO migration unit test
Screw b4, I'm back to git send-email again. Also screw my email provider black-box.
Hello everyone,
This has some cleanups for and adds multifd support and migration unit tests for COLO migration.
Regards,
Lukas
---
Changes in v11:
- Use colo with return-path capability
- Link to v10: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v10:
- multifd: always kick the main thread
- always open the return path socket on source
- Link to v9: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v9:
- Rebase onto master
- Fix two rare bugs discovered during sresstesting the colo unit test
- Link to v8: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v8:
- Fix peter's review comments
- Link to v7: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v7:
- Fix peter's review comments
- Link to v6: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v6:
- Fix the crash when running COLO with TCG accel.
- Link to v5: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v5:
- Remove unused inmports from multifd-colo.c
- Mention the checkpoint overhead of reset to the Q35 fix
- Link to v4: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v4:
- Add cleanup patches to remove migration_incoming_colo_enabled() and MIG_CMD_ENABLE_COLO
- Add more comments to the colo unit test
- Call colo_release_ram_cache() after multifd threads terminate
- Link to v3: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v3:
- Fix peter's review comments.
- Fix COLO with Q35 machine
- Link to v2: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v2:
- Fix review comments
- Hide stderr in colo migration test since the logged errors are expected
- Add benchmarking data for multifd
- Add myself as maintainer for COLO migration framework
- Link to v1: https://lore.kernel.org/qemu-devel/[email protected]
---
Lukas Straub (21):
MAINTAINERS: Add myself as maintainer for COLO migration framework
MAINTAINERS: Remove Hailiang Zhang from COLO migration framework
colo: Setup ram cache in normal migration path
colo: Replace migration_incoming_colo_enabled() with migrate_colo()
colo: Remove ENABLE_COLO savevm command and mark it as deprecated
ram: Remove colo special-casing
multifd: Move ram state receive into multifd_ram_state_recv()
multifd: Add COLO support
Call colo_release_ram_cache() after multifd threads terminate
colo: Fix crash during device vmstate load
colo: Hold the BQL while sending ram state
colo: Do not hold the BQL while receiving ram state.
migration-test: Add COLO migration unit test
Convert colo main documentation to restructuredText qemu-colo.rst: Miscellaneous changes
qemu-colo.rst: Add my copyright
qemu-colo.rst: Simplify the block replication setup
multifd: Fix hang if send thread errors during sync
colo: Use file lock in primary_vm_do_failover()
migration: Keep s->rp_state.from_dst_file open until migration ends
colo: Reuse the return path from migration on primary and secondary side
MAINTAINERS | 6 +- docs/COLO-FT.txt | 334 ---------------------------------- docs/system/index.rst | 1 + docs/system/qemu-colo.rst | 362 +++++++++++++++++++++++++++++++++++++ include/migration/colo.h | 3 - migration/colo.c | 59 +++--- migration/meson.build | 2 +- migration/migration.c | 80 ++++---- migration/multifd-colo.c | 44 +++++ migration/multifd-colo.h | 26 +++ migration/multifd-nocomp.c | 10 +- migration/multifd.c | 26 ++- migration/multifd.h | 5 +- migration/options.c | 10 +- migration/ram.c | 12 +- migration/savevm.c | 37 +--- migration/savevm.h | 1 - migration/trace-events | 1 - tests/qtest/meson.build | 7 +- tests/qtest/migration-test.c | 1 + tests/qtest/migration/colo-tests.c | 199 ++++++++++++++++++++ tests/qtest/migration/framework.c | 13 ++ tests/qtest/migration/framework.h | 5 + 23 files changed, 777 insertions(+), 467 deletions(-)
---
base-commit: d8a9d97317d03190b34498741f98f22e2a9afe3e
change-id: 20251230-colo_unit_test_multifd-8bf58dcebd46
Best regards,
Signature · 1 line
Lukas Straub <[email protected]>