Skip to content

migration capability to discard the migrated ram pages

Pavel Butsykin qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 13 repliesIn review
  2. v12 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- changed name of the interfaces (discard to release)
- fix make check error
- add more comments to qemu_iovec_release_ram()
- rebase on "Postcopy: Hugepage support" (David's patch series)
- removed ram_discard_page for xbzrle
- fix erroneous release memory in complete precopy (tie release-ram to postcopy)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3migration: add MigrationState arg for ram_save_/compressed_/page()migration/ram.c+8 -72 replies
2/3add 'release-ram' migrate capabilityinclude/migration/migration.h include/migration/qemu-file.h migration/migration.c +3 more+89 -104 replies
3/3migration: discard non-dirty ram pages after the start of postcopyinclude/migration/migration.h migration/migration.c migration/ram.c+24 -01 reply

Reviews trailers per patch

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

PatchDr. David Alan GilbertPhilippe Mathieu-Daudé
1/3R-b R-b
2/3R-b R-b
3/3R-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 [Qemu-devel] [PATCH v2 0/3] migration capability to discard the migrated ram pages

This feature frees the migrated memory on the source during postcopy-ram migration. In the second step of postcopy-ram migration when the source vm is put on pause we can free unnecessary memory. It will allow, in particular, to start relaxing the memory stress on the source host in a load-balancing scenario.

Changes from v1:
- changed name of the interfaces (discard to release)
- fix make check error
- add more comments to qemu_iovec_release_ram()
- rebase on "Postcopy: Hugepage support" (David's patch series)
- removed ram_discard_page for xbzrle
- fix erroneous release memory in complete precopy (tie release-ram to postcopy)

Pavel Butsykin (3):
migration: add MigrationState arg for ram_save_/compressed_/page() add 'release-ram' migrate capability
migration: discard non-dirty ram pages after the start of postcopy

 include/migration/migration.h |  2 ++
 include/migration/qemu-file.h |  3 ++-
 migration/migration.c         | 13 ++++++++++
 migration/qemu-file.c         | 59 ++++++++++++++++++++++++++++++++++++++-----
 migration/ram.c               | 56 ++++++++++++++++++++++++++++++++++------
 qapi-schema.json              |  5 +++-
 6 files changed, 121 insertions(+), 17 deletions(-)
Signature · 1 line
2.11.0