migration: cleanups, fixes and micro-optimizations
Status from this message: I queued the rest, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | migration/fd: collapse migration_fd_valid into single boolean expressionmigration/ | +1 | 1 reply | |
| 2/8 | migration/global_state: replace strcpy("") with explicit NUL terminationmigration/ | +1 | 1 reply | |
| 3/8 | migration/vmstate: avoid per-element heap churn in vmsd ptr marker fieldmigration/ | +16 | 1 reply | |
| 4/8 | migration/savevm: use stack-allocated bitmap in configuration_validate_capabilitiesmigration/ | +2 | 1 reply | |
| 5/8 | migration/multifd: fix off-by-one in recv channel ID validationmigration/ | +3 | 1 reply | |
| 6/8 | migration/multifd: merge thread-join and cleanup loops in multifd_recv_cleanupmigration/ | +2 | 1 reply | |
| 7/8 | migration/multifd: cache migrate_multifd_channels() in send/recv hot pathsmigration/ | +9 | 1 reply | |
| 8/8 | migration/multifd: cache channel count in multifd_send_sync_mainmigration/ | +4 | 1 reply |
Reviews trailers per patch
6 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Fabiano Rosas |
|---|---|
| 1/8 | |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/8] migration: cleanups, fixes and micro-optimizations
This series collects several small improvements to the migration subsystem:
- Bug fix: off-by-one in multifd recv channel ID validation that could allow an out-of-bounds write (patch 5).
- Micro-optimizations: cache migrate_multifd_channels() in hot paths (patches 7-8), use stack-allocated bitmap instead of heap (patch 4), avoid per-element heap churn in vmstate ptr marker field (patch 3).
- Cleanups: collapse migration_fd_valid into a single boolean expression (patch 1), replace strcpy("") with explicit NUL termination (patch 2), merge thread-join and cleanup loops in multifd_recv_cleanup (patch 6).
No functional change intended except for the off-by-one fix in patch 5.
Bin Guo (8):
migration/fd: collapse migration_fd_valid into single boolean
expression
migration/global_state: replace strcpy("") with explicit NUL
termination
migration/vmstate: avoid per-element heap churn in vmsd ptr marker
field
migration/savevm: use stack-allocated bitmap in
configuration_validate_capabilities
migration/multifd: fix off-by-one in recv channel ID validation migration/multifd: merge thread-join and cleanup loops in
multifd_recv_cleanup
migration/multifd: cache migrate_multifd_channels() in send/recv hot
paths
migration/multifd: cache channel count in multifd_send_sync_main
migration/fd.c | 10 +--------- migration/global_state.c | 2 +- migration/multifd.c | 32 +++++++++++++++++-------------- migration/savevm.c | 5 ++--- migration/vmstate.c | 41 ++++++++++++++++------------------------ 5 files changed, 38 insertions(+), 52 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)