Skip to content

Remove RDMA migration dependence on RAMBlock offset

Dr. David Alan Gilbert (git) qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest12 patches 23 repliesIn review
  2. v110 patches 20 repliesSuperseded

Changes in v2 from the cover letter

Keep rdma_delete_block's ability to delete entries from the hash
(on the source side)
Fix ram-control-hook modification so they don't break non-rdma migrate Added a fix that makes the RDMA migration exit in the case of some mismatched
configs instead of hanging.
Clarified comments/commit messages
Added a pair of typo fixes

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Rename RDMA structures to make destination clearmigration/rdma.c+33 -331 reply
2/12qemu_ram_foreach_block: pass up error value, and down the ramblock nameexec.c include/exec/cpu-common.h migration/rdma.c+12 -61 reply
3/12Remove unneeded memsetmigration/rdma.c+0 -11 reply
4/12rdma typosmigration/rdma.c trace-events+5 -53 replies
5/12Store block name in local blocks structuremigration/rdma.c trace-events+22 -151 reply
6/12Translate offsets to destination address spacemigration/rdma.c+24 -76 replies
7/12Rework ram_control_load_hook to hook during block loadarch_init.c include/migration/migration.h include/migration/qemu-file.h +3 more+47 -195 replies
8/12Allow rdma_delete_block to work without the hashmigration/rdma.c trace-events+17 -122 replies
9/12Rework ram block hashmigration/rdma.c+20 -122 replies
10/12Sort destination RAMBlocks to be the same as the sourcemigration/rdma.c trace-events+75 -281 reply
11/12Sanity check RDMA remote datamigration/rdma.c+30 -00 replies
12/12Fail more cleanly in mismatched RAM casesmigration/rdma.c+2 -00 replies

Reviews trailers per patch

10 of 12 patches have a Reviewed-by or Acked-by.

PatchMichael R. HinesDavid GibsonAmit ShahJuan Quintela
1/12R-b R-b
2/12R-b R-b R-b R-b
3/12R-b R-b
4/12R-b
5/12R-b R-b
6/12R-b
7/12
8/12R-b
9/12R-b
10/12R-b
11/12R-b
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 00/12] Remove RDMA migration dependence on RAMBlock offset

From: "Dr. David Alan Gilbert" <[email protected]>

RDMA migration currently relies on the source and destination RAMBlocks having the same offsets within ram_addr_t space; unfortunately that's just not true when:
a) You hotplug on the source but then create the device on the command line on the destination.

b) Across two versions of qemu

Thus there are migrations that work with TCP that don't with RDMA.

The changes keep stream compatibility with existing RDMA migration, so cases that already work (i.e. no hotplug) will keep working.

The new requirements do rely on the block indexes being the same on both sides (hence we sort to ensure that), my reading of the existing code is that it also relies on that in various places but doesn't ensure it's true.

With some light testing this seems to work; hopefully I've got all the cases that pass offsets back and forward.

v2:
Keep rdma_delete_block's ability to delete entries from the hash
(on the source side)
Fix ram-control-hook modification so they don't break non-rdma migrate Added a fix that makes the RDMA migration exit in the case of some mismatched
configs instead of hanging.
Clarified comments/commit messages
Added a pair of typo fixes

Dr. David Alan Gilbert (12):
Rename RDMA structures to make destination clear
qemu_ram_foreach_block: pass up error value, and down the ramblock
name
Remove unneeded memset
rdma typos
Store block name in local blocks structure
Translate offsets to destination address space
Rework ram_control_load_hook to hook during block load Allow rdma_delete_block to work without the hash
Rework ram block hash
Sort destination RAMBlocks to be the same as the source Sanity check RDMA remote data
Fail more cleanly in mismatched RAM cases

 arch_init.c                   |   4 +-
 exec.c                        |  10 +-
 include/exec/cpu-common.h     |   4 +-
 include/migration/migration.h |   2 +-
 include/migration/qemu-file.h |  14 +-
 migration/qemu-file.c         |  16 +-
 migration/rdma.c              | 347 +++++++++++++++++++++++++++++-------------
 trace-events                  |  12 +-
 8 files changed, 279 insertions(+), 130 deletions(-)
Signature · 1 line
2.4.2