Re: [pve-devel] [PATCH qemu-server v2 4/6] resume suspended vm on start

2019-03-14 Thread Dominik Csapak
On 14/03/2019 08:44, Thomas Lamprecht wrote: On 3/13/19 9:55 AM, Dominik Csapak wrote: if a vm has the 'suspend' lock, we resume with the saved state and remove the lock, the saved vmstate and the saved runningmachine after the vm started how this all plays out if I start a VM someone is curre

Re: [pve-devel] [PATCH qemu-server v2 4/6] resume suspended vm on start

2019-03-14 Thread Thomas Lamprecht
On 3/13/19 9:55 AM, Dominik Csapak wrote: > if a vm has the 'suspend' lock, we resume with the saved state > and remove the lock, the saved vmstate and the saved runningmachine > after the vm started how this all plays out if I start a VM someone is currently in the process of suspending? flock is

[pve-devel] [PATCH qemu-server v2 4/6] resume suspended vm on start

2019-03-13 Thread Dominik Csapak
if a vm has the 'suspend' lock, we resume with the saved state and remove the lock, the saved vmstate and the saved runningmachine after the vm started Signed-off-by: Dominik Csapak --- changes from v1: * pull out has_lock * better comment * better variable naming * more consise deletion of hash