Skip to content

RFC migration/multifd: quit unitifications and separate sync packet

Peter Xu qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7migration: Drop stale comment for multifd zero copymigration/multifd.c+0 -111 reply
2/7migration: Fix error leak in multifd_tls_outgoing_handshake()migration/multifd.c+1 -01 reply
3/7migration: multifd_send_kick_main()migration/multifd.c+15 -64 replies
4/7migration: Drop MultiFDSendParams.quit and cleanup error pathsmigration/multifd.c migration/multifd.h+26 -584 replies
5/7migration: Modulize multifd send threads with a few helpersmigration/multifd.c+96 -640 replies
6/7migration: Split multifd pending_job into two booleansmigration/multifd.c migration/multifd.h+33 -162 replies
7/7migration: Further unify paths for multifd normal or sync requestsmigration/multifd.c+25 -260 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

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

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

Read the v1 thread

Cover letter [PATCH RFC 0/7] migration/multifd: quit unitifications and separate sync packet

This is an RFC series, at least for 9.0, so not urgent for this release. Just for early reviews.

Said so, patch 1 could be a bugfix, didn't copy stable as I don't think it's worthwhile. Maybe worth picking up even soon.

This series majorly does two things as mentioned in the subject, namely:

1) Quit unifications: after read Fabiano's patch, I moved that further to drop p->quit, meanwhile I found some path that may miss things here and there. Got all of them cleaned/fixed up.

2) Separate SYNC packet: it seems the SYNC packet is confusing in multifd, where it's the only case that main thread can modify p->flags too. The field "pending_job" is also confusing to be an integer. Split it can be helpful to make multifd code more readable, meanwhile making pending_job a boolean (with yet another one added pending_sync for SYNC).

I think I'm more confident 1) is a good idea, maybe not 2). The last patch I put it last because I think it reduces duplication, but I'm not sure whether that's a common flavour of how code should be written. Let me know your opinions. Thanks,

Peter Xu (7):
migration: Drop stale comment for multifd zero copy
migration: Fix error leak in multifd_tls_outgoing_handshake()
migration: multifd_send_kick_main()
migration: Drop MultiFDSendParams.quit and cleanup error paths
migration: Modulize multifd send threads with a few helpers
migration: Split multifd pending_job into two booleans
migration: Further unify paths for multifd normal or sync requests

 migration/multifd.h |  18 +--
 migration/multifd.c | 307 +++++++++++++++++++++++---------------------
 2 files changed, 170 insertions(+), 155 deletions(-)
Signature · 1 line
2.41.0