]> xenbits.xensource.com Git - libvirt.git/commit
qemuCheckpointDelete: Check VM liveness first
authorPeter Krempa <pkrempa@redhat.com>
Thu, 26 Mar 2020 14:20:44 +0000 (15:20 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 26 Mar 2020 16:56:30 +0000 (17:56 +0100)
commite05dd1abdc3b3eeac6e12ab105e56138d783af2a
tree1bccc0046661aa560bf8ebf57f27c8009a971688
parent8b41b21aee4fb3b0f5fed1ecc73c5a7fd6879a93
qemuCheckpointDelete: Check VM liveness first

Move the liveness check prior to the capability check. If the VM is
offline the capabilities are not initialized and thus we'd report the
wrong error.

https://bugzilla.redhat.com/show_bug.cgi?id=1812531

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_checkpoint.c