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

Peter Xu posted 3 patches 2 years, 7 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210922162009.125622-1-peterx@redhat.com
Maintainers: "Marc-André Lureau" <marcandre.lureau@redhat.com>
dump/dump.c                 | 19 +++++++++++++++++++
include/migration/blocker.h | 16 ++++++++++++++++
migration/migration.c       | 24 +++++++++++++++---------
3 files changed, 50 insertions(+), 9 deletions(-)
[PATCH v3 0/3] dump-guest-memory: Add blocker for migration
Posted by Peter Xu 2 years, 7 months ago
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(-)

-- 
2.31.1


Re: [PATCH v3 0/3] dump-guest-memory: Add blocker for migration
Posted by Peter Xu 2 years, 6 months ago
On Wed, Sep 22, 2021 at 12:20:06PM -0400, Peter Xu wrote:
> v3:
> - Patch 3: in qmp_dump_guest_memory(), keeps the RUN_STATE_INMIGRATE check
>   [Marc-Andre]

Ping - More comments?

If to go, should this go via dump or migration?  I think it belongs more to
migration more (and I got Marc-Andre's ack on all patches).. but leaving that
to maintainers.

Thanks,

-- 
Peter Xu