From: "Dr. David Alan Gilbert" <dgilb...@redhat.com> The following changes since commit 1ba089f2255bfdb071be3ce6ac6c3069e8012179:
Merge remote-tracking branch 'remotes/armbru/tags/pull-qmp-2021-02-04' into staging (2021-02-04 14:15:35 +0000) are available in the Git repository at: git://github.com/dagrh/qemu.git tags/pull-migration-20210204a for you to fetch changes up to ef74d46576a9e5aff96f285b74150f341a525688: migration: introduce snapshot-{save, load, delete} QMP commands (2021-02-04 16:29:03 +0000) ---------------------------------------------------------------- Migration pull 2020-02-04 New snapshot features: a) Andrey's RAM snapshot feature using userfault-wp b) Dan's native-QMP snapshots Cleanups: c) Jinhao's memory leeak fixes d) Wainer's maybe unitialized fix e) Markus's parameter fixes Signed-off-by: Dr. David Alan Gilbert <dgilb...@redhat.com> ---------------------------------------------------------------- Andrey Gruzdev (5): migration: introduce 'background-snapshot' migration capability migration: introduce UFFD-WP low-level interface helpers migration: support UFFD write fault processing in ram_save_iterate() migration: implementation of background snapshot thread migration: introduce 'userfaultfd-wrlat.py' script Daniel P. Berrangé (11): block: push error reporting into bdrv_all_*_snapshot functions migration: stop returning errno from load_snapshot() block: add ability to specify list of blockdevs during snapshot block: allow specifying name of block device for vmstate storage block: rename and alter bdrv_all_find_snapshot semantics migration: control whether snapshots are ovewritten migration: wire up support for snapshot device selection migration: introduce a delete_snapshot wrapper iotests: add support for capturing and matching QMP events iotests: fix loading of common.config from tests/ subdir migration: introduce snapshot-{save, load, delete} QMP commands Dr. David Alan Gilbert (2): migration: Add blocker information migration: Display the migration blockers Jinhao Gao (3): spapr_pci: Fix memory leak of vmstate_spapr_pci savevm: Fix memory leak of vmstate_configuration vmstate: Fix memory leak in vmstate_handle_alloc() Markus Armbruster (4): migration: Fix migrate-set-parameters argument validation migration: Clean up signed vs. unsigned XBZRLE cache-size migration: Fix cache_init()'s "Failed to allocate" error messages migration: Fix a few absurdly defective error messages Philippe Mathieu-Daudé (1): migration: Make save_snapshot() return bool, not 0/-1 Wainer dos Santos Moschetta (1): migration/qemu-file: Fix maybe uninitialized on qemu_get_buffer_in_place() block/monitor/block-hmp-cmds.c | 7 +- block/snapshot.c | 256 ++++++++++++++++++-------- hw/ppc/spapr_pci.c | 11 ++ include/block/snapshot.h | 23 ++- include/exec/memory.h | 8 + include/migration/snapshot.h | 47 ++++- include/qemu/userfaultfd.h | 35 ++++ migration/migration.c | 409 +++++++++++++++++++++++++++++++++++++++-- migration/migration.h | 6 +- migration/page_cache.c | 8 +- migration/page_cache.h | 2 +- migration/qemu-file.c | 2 +- migration/ram.c | 305 +++++++++++++++++++++++++++++- migration/ram.h | 8 +- migration/savevm.c | 341 +++++++++++++++++++++++++++++----- migration/savevm.h | 3 + migration/trace-events | 2 + migration/vmstate.c | 1 + monitor/hmp-cmds.c | 45 +++-- qapi/job.json | 9 +- qapi/migration.json | 218 ++++++++++++++++++++-- replay/replay-debugging.c | 12 +- replay/replay-snapshot.c | 5 +- scripts/userfaultfd-wrlat.py | 122 ++++++++++++ softmmu/vl.c | 2 +- tests/qemu-iotests/267.out | 12 +- tests/qemu-iotests/common.qemu | 106 ++++++++++- tests/qemu-iotests/common.rc | 10 +- util/meson.build | 1 + util/trace-events | 9 + util/userfaultfd.c | 345 ++++++++++++++++++++++++++++++++++ 31 files changed, 2145 insertions(+), 225 deletions(-) create mode 100644 include/qemu/userfaultfd.h create mode 100755 scripts/userfaultfd-wrlat.py create mode 100644 util/userfaultfd.c