Skip to content

Allow to enable multifd and postcopy migration together

Prasad Pandit qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5migration/multifd: move macros to multifd headermigration/multifd.c migration/multifd.h+5 -40 replies
2/5migration/postcopy: magic value for postcopy channelmigration/postcopy-ram.c migration/postcopy-ram.h+10 -017 replies
3/5migration: remove multifd check with postcopymigration/options.c+2 -63 replies
4/5migration: refactor ram_save_target_page functionsmigration/ram.c+22 -324 replies
5/5migration: enable multifd and postcopy togethermigration/migration.c+44 -293 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Allow to enable multifd and postcopy migration together

From: Prasad Pandit <[email protected]>

Hello,

* Currently Multifd and Postcopy migration can not be used together. QEMU shows "Postcopy is not yet compatible with multifd" message.

When migrating guests with large (100's GB) RAM, Multifd threads help to accelerate migration, but inability to use it with the Postcopy mode delays guest start up on the destination side.

* This patch series allows to enable both Multifd and Postcopy migration together. In this, Precopy and Multifd threads work during the initial guest (RAM) transfer. When migration moves to the Postcopy phase, Precopy and Multifd threads on the source side stop sending data on their channels. Instead Postcopy threads on the destination start to request pages from the source side.

* This series introduces magic value (4-bytes) to be sent on the Postcopy channel. It helps to differentiate channels and properly setup incoming connections on the destination side.

Thank you.
---
Prasad Pandit (5):
migration/multifd: move macros to multifd header migration/postcopy: magic value for postcopy channel
migration: remove multifd check with postcopy
migration: refactor ram_save_target_page functions
migration: enable multifd and postcopy together

 migration/migration.c    | 73 ++++++++++++++++++++++++----------------
 migration/multifd.c      |  4 ---
 migration/multifd.h      |  5 +++
 migration/options.c      |  8 ++---
 migration/postcopy-ram.c |  7 ++++
 migration/postcopy-ram.h |  3 ++
 migration/ram.c          | 54 ++++++++++++-----------------
 7 files changed, 83 insertions(+), 71 deletions(-)

--
2.47.0