qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/6] migration: misc cleanups
@ 2022-01-11 12:45 Juan Quintela
  2022-01-11 12:45 ` [PATCH v3 1/6] migration: All this fields are unsigned Juan Quintela
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Juan Quintela @ 2022-01-11 12:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: Leonardo Bras, Dr. David Alan Gilbert, Peter Xu, Juan Quintela

Hi

Changes since v2:
- rebase
- address comments
- use TARGET_PAGE_SIZE and remove casts
- remove TARGET_PAGE_MASK from compression code.
  Nothing else use them.  And if offsets are not aligned,
  we are in big trouble.

Please, review.

Changes since v1:
- Add reviewed tags for reviewed patches
- Change comment about last_stage (philmd)
- Change cast to 1ULL for ram_release_page()
- remove TARGET_PAGE_MASK mask.  It was used only for compression,
  and offset should be page aligned already

Please, review.

Thanks, Juan.

[v1]
This series do several cleanups:
- Dave found that I was using "%d" for unsigned, fix all uses.
- We pass last_stage left and right, but we only use it in two places
  Just move it to RAMState.
- do_compress_page() used a goto when not needed.
- ram_release_pages() was always used with one page
- And put it when we detect zero pages, instead of everywhere we have find a zero page.

Please, review.

Juan Quintela (6):
  migration: All this fields are unsigned
  migration: We only need last_stage in two places
  migration: ram_release_pages() always receive 1 page as argument
  migration: Remove masking for compression
  migration: simplify do_compress_ram_page
  migration: Move ram_release_pages() call to save_zero_page_to_file()

 migration/multifd-zlib.c | 20 +++++------
 migration/multifd-zstd.c | 24 ++++++-------
 migration/multifd.c      | 16 ++++-----
 migration/ram.c          | 73 +++++++++++++++++-----------------------
 migration/trace-events   | 26 +++++++-------
 5 files changed, 74 insertions(+), 85 deletions(-)

-- 
2.34.1




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-01-25  9:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-11 12:45 [PATCH v3 0/6] migration: misc cleanups Juan Quintela
2022-01-11 12:45 ` [PATCH v3 1/6] migration: All this fields are unsigned Juan Quintela
2022-01-11 12:45 ` [PATCH v3 2/6] migration: We only need last_stage in two places Juan Quintela
2022-01-11 12:45 ` [PATCH v3 3/6] migration: ram_release_pages() always receive 1 page as argument Juan Quintela
2022-01-11 13:44   ` Philippe Mathieu-Daudé
2022-01-25  9:16     ` Juan Quintela
2022-01-11 12:45 ` [PATCH v3 4/6] migration: Remove masking for compression Juan Quintela
2022-01-11 13:38   ` Dr. David Alan Gilbert
2022-01-11 12:45 ` [PATCH v3 5/6] migration: simplify do_compress_ram_page Juan Quintela
2022-01-11 13:45   ` Dr. David Alan Gilbert
2022-01-11 12:45 ` [PATCH v3 6/6] migration: Move ram_release_pages() call to save_zero_page_to_file() Juan Quintela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).