]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Properly avoid cancelling memory-only dump
authorJiri Denemark <jdenemar@redhat.com>
Wed, 4 Apr 2018 10:11:38 +0000 (12:11 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Apr 2018 08:46:23 +0000 (10:46 +0200)
commita5bc7130f3acb47636aea45a27e068b315d2d618
treefc9312970161ad234f1df8ec0552232c17da278a
parentd634f7d759472775842a4807b39cad5806bd4a27
qemu: Properly avoid cancelling memory-only dump

migrate_cancel QMP command cannot be used for cancelling memory-only
dumps and priv->job.dump_memory_only is used for reporting an error if
someone calls virDomainAbortJob when memory-only dump job is running.

Since commit 150930e3098 the dump_memory_only flag is set only if
dump-guest-memory command was called without the detach parameter. This
would incorrectly allow libvirt to send migrate_cancel while the
detached memory-only dump is running.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c