[pve-devel] [PATCH qemu-server] Fix ACPI-suspended VMs resuming after migration
Fiona Ebner
f.ebner at proxmox.com
Thu Aug 24 14:45:32 CEST 2023
Am 23.08.23 um 12:58 schrieb Filip Schauer:
> When migrating a VM that suspended itself via ACPI, it will no longer be
> resumed automatically.
>
> Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
At a first glance, it seems like the other callers of vm_is_paused()
could also benefit from treating the 'suspended' runstate the same way
as 'paused'. Can you please check that and instead add the check for
'suspended' directly to the vm_is_paused() function? If you can come up
with a good name it might make sense to rename the function too, or at
least add a comment saying that the "paused" does not mean only the
runstate 'paused' but includes other runstates where the VM is paused ;)
And we might want to treat the runstate 'prelaunch' as paused too.
There's also runstates for being paused during certain phases of
migration, but maybe we can ignore them for now. Shouldn't be strictly
required, because of our config locking.
Full list would be here:
https://qemu.readthedocs.io/en/v8.0.0/interop/qemu-qmp-ref.html#qapidoc-85
More information about the pve-devel
mailing list