aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2021-09-22 12:20:09 -0400
committerJuan Quintela <quintela@redhat.com>2021-11-01 22:56:44 +0100
commitb7bc6b182883bb3097dde2a25d041f28bde2b89c (patch)
treee5de4f3582754b812fd6f953c8206ec6a30ddac9 /softmmu
parent60fd680193119e7e4d50eccff7b55a0aadc934ab (diff)
downloadqemu-b7bc6b182883bb3097dde2a25d041f28bde2b89c.zip
qemu-b7bc6b182883bb3097dde2a25d041f28bde2b89c.tar.gz
qemu-b7bc6b182883bb3097dde2a25d041f28bde2b89c.tar.bz2
dump-guest-memory: Block live migration
Both dump-guest-memory and live migration caches vm state at the beginning. Either of them entering the other one will cause race on the vm state, and even more severe on that (please refer to the crash report in the bug link). Let's block live migration in dump-guest-memory, and that'll also block dump-guest-memory if it detected that we're during a live migration. Side note: migrate_del_blocker() can be called even if the blocker is not inserted yet, so it's safe to unconditionally delete that blocker in dump_cleanup (g_slist_remove allows no-entry-found case). Suggested-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1996609 Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'softmmu')
0 files changed, 0 insertions, 0 deletions