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: <[email protected]> ([RESEND] migration/savevm: Add a compatibility check for capabilities) v1: https://lore.kernel.org/qemu-devel/[email protected]/ 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
