Skip to content

dump-guest-memory: Add blocker for migration

Peter Xu qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v23 patches 7 repliesSuperseded
  3. v12 patches 10 repliesSuperseded

Changes in v3 from the cover letter

- Patch 3: in qmp_dump_guest_memory(), keeps the RUN_STATE_INMIGRATE check [Marc-Andre]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3migration: Make migration blocker work for snapshots toomigration/migration.c+8 -71 reply
2/3migration: Add migrate_add_blocker_internal()include/migration/blocker.h migration/migration.c+29 -80 replies
3/3dump-guest-memory: Block live migrationdump/dump.c+19 -02 replies

Reviews trailers per patch

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

PatchMarc-André LureauJuan Quintela
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/3] dump-guest-memory: Add blocker for migration

v3:
- Patch 3: in qmp_dump_guest_memory(), keeps the RUN_STATE_INMIGRATE check [Marc-Andre]

v2:
- One more patch: "migration: Make migration blocker work for snapshots too"
- Move register of migration blocker to be before dump_init [Marc-Andre]
- Collected r-bs

Both dump-guest-memory and live migration have vm state cached internally. Allowing them to happen together means the vm state can be messed up. Simply block live migration for dump-guest-memory.

One trivial thing to mention is we should still allow dump-guest-memory even if -only-migratable is specified, because that flag should majorly be used to guarantee not adding devices that will block migration by accident. Dump guest memory is not like that - it'll only block for the seconds when it's dumping.

Thanks,

Peter Xu (3):
migration: Make migration blocker work for snapshots too
migration: Add migrate_add_blocker_internal()
dump-guest-memory: Block live migration

 dump/dump.c                 | 19 +++++++++++++++++++
 include/migration/blocker.h | 16 ++++++++++++++++
 migration/migration.c       | 24 +++++++++++++++---------
 3 files changed, 50 insertions(+), 9 deletions(-)
Signature · 1 line
2.31.1