qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/7] migration/multifd: quit unitifications and separate sync packet
@ 2023-10-22 20:12 Peter Xu
  2023-10-22 20:12 ` [PATCH RFC 1/7] migration: Drop stale comment for multifd zero copy Peter Xu
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Peter Xu @ 2023-10-22 20:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: Juan Quintela, Fabiano Rosas, peterx

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(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-11-09 17:02 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-22 20:12 [PATCH RFC 0/7] migration/multifd: quit unitifications and separate sync packet Peter Xu
2023-10-22 20:12 ` [PATCH RFC 1/7] migration: Drop stale comment for multifd zero copy Peter Xu
2023-10-23 14:16   ` Fabiano Rosas
2023-10-22 20:12 ` [PATCH RFC 2/7] migration: Fix error leak in multifd_tls_outgoing_handshake() Peter Xu
2023-10-23 14:17   ` Fabiano Rosas
2023-10-22 20:12 ` [PATCH RFC 3/7] migration: multifd_send_kick_main() Peter Xu
2023-10-23 14:43   ` Fabiano Rosas
2023-11-08 22:49   ` Fabiano Rosas
2023-11-09 16:50     ` Peter Xu
2023-11-09 17:00       ` Fabiano Rosas
2023-10-22 20:12 ` [PATCH RFC 4/7] migration: Drop MultiFDSendParams.quit and cleanup error paths Peter Xu
2023-10-23 14:42   ` Fabiano Rosas
2023-10-23 14:53     ` Peter Xu
2023-10-23 15:35       ` Fabiano Rosas
2023-10-23 15:54         ` Peter Xu
2023-10-22 20:12 ` [PATCH RFC 5/7] migration: Modulize multifd send threads with a few helpers Peter Xu
2023-10-22 20:12 ` [PATCH RFC 6/7] migration: Split multifd pending_job into two booleans Peter Xu
2023-10-23 15:15   ` Fabiano Rosas
2023-10-23 15:52     ` Peter Xu
2023-10-22 20:12 ` [PATCH RFC 7/7] migration: Further unify paths for multifd normal or sync requests Peter Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).