]> git.proxmox.com Git - pve-qemu.git/commit - debian/patches/pve/0049-PVE-savevm-async-register-yank-before-migration_inco.patch
savevm-async: set SAVE_STATE_DONE when closing state file was successful
authorFiona Ebner <f.ebner@proxmox.com>
Thu, 18 Aug 2022 11:44:17 +0000 (13:44 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 19 Aug 2022 07:44:16 +0000 (09:44 +0200)
commit1976ca460796f28447b41e3618e5c1e234035dd5
tree6758b1e3b0997c9b4f221f77304cdbf268278dfb
parent563c59289808696288565267b49a1c742d88504e
savevm-async: set SAVE_STATE_DONE when closing state file was successful

Without this change, it's necessary to send a second savevm-end QMP
command after aborting a snaphsot, before a new savevm-start QMP
command can succeed.

In process_savevm_finalize(), no longer set an error in the abort
scenario. If there already is another error, there's no need to
override it. If canceling was done intentionally, qmp_savevm_end()
is responsible for setting the state now.

Reported-by: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
debian/patches/pve/0016-PVE-add-savevm-async-for-background-state-snapshots.patch
debian/patches/pve/0017-PVE-add-optional-buffer-size-to-QEMUFile.patch
debian/patches/pve/0049-PVE-savevm-async-register-yank-before-migration_inco.patch