[PATCH v2 0/2] migration: Add support for mapped-ram with snapshots

Marco Cavenati posted 2 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251010115954.1995298-1-Marco.Cavenati@eurecom.fr
Maintainers: Peter Xu <peterx@redhat.com>, Fabiano Rosas <farosas@suse.de>
migration/channel-block.c | 44 +++++++++++++++++++++++++++++
migration/options.c       |  1 -
migration/ram.c           | 59 ++++++++++++++++++++++++++++++++++++++-
3 files changed, 102 insertions(+), 2 deletions(-)
[PATCH v2 0/2] migration: Add support for mapped-ram with snapshots
Posted by Marco Cavenati 1 month ago
Add support for mapped-ram capability in combination with savevm/loadvm
snapshots.

v2:
- Remove unnecessary CONFIG_PREADV ifdef macros
- Remove trivial doc fix since already queued
- Fix swapped parameters in handle_zero_mapped_ram calls
- Check for RUN_STATE_RESTORE_VM before zeoring instead of checking for
run_state not in [RUN_STATE_PRELAUNCH, RUN_STATE_INMIGRATE]
- Check for from >= to instead of from == to in handle_zero_mapped_ram
- Remove mapped_ram from snapshots incompatible options
- Rebase on top of 
Based-on: <20251007184213.5990-1-farosas@suse.de>
([RESEND] migration/savevm: Add a compatibility check for capabilities)

v1:
https://lore.kernel.org/qemu-devel/20251001161823.2032399-1-Marco.Cavenati@eurecom.fr/

Thanks for the reviews on v1


Marco Cavenati (2):
  migration: add FEATURE_SEEKABLE to QIOChannelBlock
  migration: mapped-ram: handle zero pages

 migration/channel-block.c | 44 +++++++++++++++++++++++++++++
 migration/options.c       |  1 -
 migration/ram.c           | 59 ++++++++++++++++++++++++++++++++++++++-
 3 files changed, 102 insertions(+), 2 deletions(-)

-- 
2.48.1
Re: [PATCH v2 0/2] migration: Add support for mapped-ram with snapshots
Posted by Peter Xu 4 weeks, 1 day ago
On Fri, Oct 10, 2025 at 01:59:52PM +0200, Marco Cavenati wrote:
> Add support for mapped-ram capability in combination with savevm/loadvm
> snapshots.
> 
> v2:
> - Remove unnecessary CONFIG_PREADV ifdef macros
> - Remove trivial doc fix since already queued
> - Fix swapped parameters in handle_zero_mapped_ram calls
> - Check for RUN_STATE_RESTORE_VM before zeoring instead of checking for
> run_state not in [RUN_STATE_PRELAUNCH, RUN_STATE_INMIGRATE]
> - Check for from >= to instead of from == to in handle_zero_mapped_ram
> - Remove mapped_ram from snapshots incompatible options
> - Rebase on top of 
> Based-on: <20251007184213.5990-1-farosas@suse.de>
> ([RESEND] migration/savevm: Add a compatibility check for capabilities)
> 
> v1:
> https://lore.kernel.org/qemu-devel/20251001161823.2032399-1-Marco.Cavenati@eurecom.fr/
> 
> Thanks for the reviews on v1

queued, thanks.

-- 
Peter Xu