Skip to content

migration: Remove QEMUFileHooks

Juan Quintela qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 1 replyIn review
  2. v216 patches 3 repliesSuperseded
  3. v119 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- fix rdma_migration to reset clearly (thanks danp)
- redo the cherks for migration/rdma
- rebased on top of the counters series:
[PATCH 00/21] Migration: More migration atomic counters
Based-on: Message-Id: <[email protected]>

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10migration: Create migrate_rdma()migration/migration.c migration/migration.h migration/options.c +2 more+15 -10 replies
2/10migration/rdma: Unfold ram_control_before_iterate()migration/qemu-file.c migration/qemu-file.h migration/ram.c +2 more+22 -210 replies
3/10migration/rdma: Unfold ram_control_after_iterate()migration/qemu-file.c migration/qemu-file.h migration/ram.c +2 more+18 -210 replies
4/10migration/rdma: Remove all uses of RAM_CONTROL_HOOKmigration/qemu-file.h migration/ram.c migration/rdma.c +1 more+11 -60 replies
5/10migration/rdma: Unfold hook_ram_load()migration/qemu-file.c migration/qemu-file.h migration/ram.c +2 more+15 -430 replies
6/10migration/rdma: Create rdma_control_save_page()migration/qemu-file.c migration/qemu-file.h migration/ram.c +2 more+27 -350 replies
7/10qemu-file: Remove QEMUFileHooksmigration/qemu-file.c migration/qemu-file.h migration/rdma.c+0 -190 replies
8/10migration/rdma: Move rdma constants from qemu-file.h to rdma.hmigration/qemu-file.h migration/ram.c migration/rdma.h+17 -180 replies
9/10migration/rdma: Remove qemu_ prefix from exported functionsmigration/ram.c migration/rdma.c migration/rdma.h +1 more+46 -480 replies
10/10migration/rdma: Check sooner if we are in postcopy for save_page()migration/rdma.c+1 -50 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Xu
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

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

Read the v3 thread

Cover letter [PATCH v3 00/10] migration: Remove QEMUFileHooks

Hi

Changes in v3:
- fix rdma_migration to reset clearly (thanks danp)
- redo the cherks for migration/rdma
- rebased on top of the counters series:
[PATCH 00/21] Migration: More migration atomic counters
Based-on: Message-Id: <[email protected]>

Please, review.

Changes in v2:
- rebased on top of migration-20230428 pull (second try)
- several of the patches on the PULL request
- make clean that we don't use rdma code when we don't use rdma
- create migrate_rdma() to check if we are in rdma migration.

There is no hope for this code. I am trying to cleanup the rest of rdma calls, but the code is convoluted as hell. And it lies with the ram counters as crazy.

Please review.

In this series (v1):
- QEMUFileHooks only had a single user, RDMA migration. Just remove the hooks and create stubs for when RDMA is not compiled in.

- This implies that we have to move all the operations from migration/qemu-file.c to migration/rdma.c.

- I now we can still simplify rdma_control_save_page(), but I don't have an easy setup for testing.

- Yes, the goal of the whole operations is to be able to move ram_file_limit from qemu-file to migration.c.

Please review.

Thanks, Juan.

Juan Quintela (10):
migration: Create migrate_rdma()
migration/rdma: Unfold ram_control_before_iterate() migration/rdma: Unfold ram_control_after_iterate() migration/rdma: Remove all uses of RAM_CONTROL_HOOK migration/rdma: Unfold hook_ram_load()
migration/rdma: Create rdma_control_save_page()
qemu-file: Remove QEMUFileHooks
migration/rdma: Move rdma constants from qemu-file.h to rdma.h migration/rdma: Remove qemu_ prefix from exported functions migration/rdma: Check sooner if we are in postcopy for save_page()

 migration/migration.c  |   1 +
 migration/migration.h  |   3 +
 migration/options.c    |   7 +++
 migration/options.h    |   1 +
 migration/qemu-file.c  |  61 +--------------------
 migration/qemu-file.h  |  49 -----------------
 migration/ram.c        |  50 +++++++++++++----
 migration/rdma.c       | 121 +++++++++++++++++++----------------------
 migration/rdma.h       |  34 ++++++++++++
 migration/trace-events |  28 +++++-----
 10 files changed, 155 insertions(+), 200 deletions(-)
Signature · 1 line
2.40.0