Skip to content

migration/multifd: Some VFIO / postcopy preparations on flush

Peter Xu qemu-devel 3 versions – Applied

Status from this message: Queued, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 4 repliesApplied
  2. v27 patches 17 repliesSuperseded
  3. v12 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- R-bs collected
- Update commit message of patch 1 [Fabiano]
- English updates [Fabiano]
- Update comment for MULTIFD_SYNC_ALL [Fabiano]
- In multifd_send_sync_main(), assert on req type [Fabiano]
- Some more comments and cleanup for RAM_SAVE_FLAG_* movement [Fabiano]
- Update the last document patch [Fabiano]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7migration/multifd: Further remove the SYNC on completemigration/ram.c+10 -30 replies
2/7migration/multifd: Allow to sync with sender threads onlymigration/multifd-nocomp.c migration/multifd.c migration/multifd.h+37 -101 reply
3/7migration/ram: Move RAM_SAVE_FLAG* into ram.hmigration/ram.c migration/ram.h migration/rdma.h+28 -280 replies
4/7migration/multifd: Unify RAM_SAVE_FLAG_MULTIFD_FLUSH messagesmigration/multifd-nocomp.c migration/multifd.h migration/ram.c+30 -170 replies
5/7migration/multifd: Remove sync processing on postcopymigration/ram.c+0 -80 replies
6/7migration/multifd: Cleanup src flushes on condition checkmigration/multifd-nocomp.c migration/multifd.h migration/ram.c+47 -71 reply
7/7migration/multifd: Document the reason to sync for save_setup()migration/ram.c+25 -01 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchFabiano Rosas
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/7] migration/multifd: Some VFIO / postcopy preparations on flush

CI: https://gitlab.com/peterx/qemu/-/pipelines/1577280033
(note: it's a pipeline of two patchsets, to save CI credits and time)

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

v3 changelog:
- R-bs collected
- Update commit message of patch 1 [Fabiano]
- English updates [Fabiano]
- Update comment for MULTIFD_SYNC_ALL [Fabiano]
- In multifd_send_sync_main(), assert on req type [Fabiano]
- Some more comments and cleanup for RAM_SAVE_FLAG_* movement [Fabiano]
- Update the last document patch [Fabiano]

This series provides some changes that may be helpful for either VFIO or postcopy integration on top of multifd.

For VFIO, only patches 1 & 2 are relevant.

For postcopy, it's about patches 3-7, but it needs to be based on 1+2 because of a context dependency.

All these patches can be seen as cleanups / slight optimizations on top of master branch with/without the VFIO/postcopy work.

Besides CI, qtests, and some real-world multifd tests just to monitor the sync events happen all correct, I made sure to cover 7.2 machine type (which uses the legacy sync) so it still works as before - basically sync will be more frequent, but all thing keeps working smoothly so far.

Thanks,

Peter Xu (7):
migration/multifd: Further remove the SYNC on complete migration/multifd: Allow to sync with sender threads only migration/ram: Move RAM_SAVE_FLAG* into ram.h migration/multifd: Unify RAM_SAVE_FLAG_MULTIFD_FLUSH messages migration/multifd: Remove sync processing on postcopy migration/multifd: Cleanup src flushes on condition check migration/multifd: Document the reason to sync for save_setup()

 migration/multifd.h        | 27 ++++++++++--
 migration/ram.h            | 28 ++++++++++++
 migration/rdma.h           |  7 ---
 migration/multifd-nocomp.c | 74 ++++++++++++++++++++++++++++++-
 migration/multifd.c        | 17 +++++---
 migration/ram.c            | 89 +++++++++++++++++---------------------
 6 files changed, 173 insertions(+), 69 deletions(-)
Signature · 1 line
2.47.0