Skip to content

migration/ram: background snapshot fixes and optimiations

David Hildenbrand qemu-devel 1 version Applied

Status from this message: Queued on my tree.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5migration/ram: Fix populate_read_range()migration/ram.c+3 -11 reply
2/5migration/ram: Fix error handling in ram_write_tracking_start()migration/ram.c+3 -21 reply
3/5migration/ram: Don't explicitly unprotect when unregistering uffd-wpmigration/ram.c+0 -91 reply
4/5migration/ram: Rely on used_length for uffd_change_protection()migration/ram.c+1 -11 reply
5/5migration/ram: Optimize ram_write_tracking_start() for RamDiscardManagermigration/ram.c+34 -21 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter XuJuan Quintela
SeriesA-b
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v1 thread

Cover letter [PATCH v1 0/5] migration/ram: background snapshot fixes and optimiations

Playing with background snapshots in combination with hugetlb and virtio-mem, I found two issues and some reasonable optimizations (skip unprotecting when unregistering).

With virtio-mem (RamDiscardManager), we now won't be allocating unnecessary page tables for unplugged ranges when using uffd-wp with shmem/hugetlb.

Cc Juan Quintela <[email protected]> (maintainer:Migration)
Cc "Dr. David Alan Gilbert" <[email protected]> (maintainer:Migration)
Cc Peter Xu <[email protected]>
Cc Andrey Gruzdev <[email protected]>

David Hildenbrand (5):
migration/ram: Fix populate_read_range()
migration/ram: Fix error handling in ram_write_tracking_start() migration/ram: Don't explicitly unprotect when unregistering uffd-wp migration/ram: Rely on used_length for uffd_change_protection() migration/ram: Optimize ram_write_tracking_start() for
RamDiscardManager

 migration/ram.c | 54 ++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 40 insertions(+), 14 deletions(-)
Signature · 1 line
2.39.0