Skip to content

migration/ram: Merge zero page handling

Fabiano Rosas qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 4 repliesIn review
  2. v15 patches 7 repliesSuperseded

v1 from the cover letter

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4migration/ram: Remove RAMState from xbzrle_cache_zero_pagemigration/ram.c+2 -30 replies
2/4migration/ram: Stop passing QEMUFile around in save_zero_pagemigration/ram.c+6 -50 replies
3/4migration/ram: Move xbzrle zero page handling into save_zero_pagemigration/ram.c+20 -150 replies
4/4migration/ram: Merge save_zero_page functionsmigration/ram.c+13 -333 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPeter Xu
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] migration/ram: Merge zero page handling

For v2 I fixed patch 3 which had a hunk belonging to patch 5.

CI run: https://gitlab.com/farosas/qemu/-/pipelines/969706915

v1:
https://lore.kernel.org/r/[email protected]

Hi,

This is another small series that I extracted from my fixed-ram series and that could be already considered for merging.

This is just code movement, no functional change. The objective is to consolidate the zero page handling in the same routine that saves the page header and does accounting. Then in the future I'll be able to just return early because fixed-ram ignores zero pages.

CI run: https://gitlab.com/farosas/qemu/-/pipelines/968300062

Fabiano Rosas (4):
migration/ram: Remove RAMState from xbzrle_cache_zero_page migration/ram: Stop passing QEMUFile around in save_zero_page migration/ram: Move xbzrle zero page handling into save_zero_page migration/ram: Merge save_zero_page functions

 migration/ram.c | 75 ++++++++++++++++++++-----------------------------
 1 file changed, 30 insertions(+), 45 deletions(-)
Signature · 1 line
2.35.3