Remove RDMA migration dependence on RAMBlock offset
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 23 repliesIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | Rename RDMA structures to make destination clearmigration/ | +33 | 1 reply | |
| 2/12 | qemu_ram_foreach_block: pass up error value, and down the ramblock nameexec.c include/ migration/ | +12 | 1 reply | |
| 3/12 | Remove unneeded memsetmigration/ | +0 | 1 reply | |
| 4/12 | rdma typosmigration/ trace-events | +5 | 3 replies | |
| 5/12 | Store block name in local blocks structuremigration/ trace-events | +22 | 1 reply | |
| 6/12 | Translate offsets to destination address spacemigration/ | +24 | 6 replies | |
| 7/12 | Rework ram_control_load_hook to hook during block loadarch_init.c include/ include/ +3 more | +47 | 5 replies | |
| 8/12 | Allow rdma_delete_block to work without the hashmigration/ trace-events | +17 | 2 replies | |
| 9/12 | Rework ram block hashmigration/ | +20 | 2 replies | |
| 10/12 | Sort destination RAMBlocks to be the same as the sourcemigration/ trace-events | +75 | 1 reply | |
| 11/12 | Sanity check RDMA remote datamigration/ | +30 | 0 replies | |
| 12/12 | Fail more cleanly in mismatched RAM casesmigration/ | +2 | 0 replies |
Reviews trailers per patch
10 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Michael R. Hines | David Gibson | Amit Shah | Juan Quintela |
|---|---|---|---|---|
| 1/12 | R-b | R-b | ||
| 2/12 | R-b | R-b | R-b | R-b |
| 3/12 | R-b | R-b | ||
| 4/12 | R-b | |||
| 5/12 | R-b | R-b | ||
| 6/12 | R-b | |||
| 7/12 | ||||
| 8/12 | R-b | |||
| 9/12 | R-b | |||
| 10/12 | R-b | |||
| 11/12 | R-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.
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