[pve-devel] applied: [PATCH qemu-server] Fix races with suspended VMs that can wake up

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Oct 16 16:50:02 CEST 2023


Am 13/10/2023 um 15:50 schrieb Filip Schauer:
> Fix races with ACPI-suspended VMs which could wake up during migration
> or during a suspend-mode backup.
> 
> Revert prevention, of ACPI-suspended VMs automatically resuming after
> migration, introduced by 7ba974a6828d. The commit introduced a potential
> problem that causes a suspended VM that wakes up during migration to
> remain paused after the migration finishes.
> 
> Furthermore the commit increased the race window during the preparation
> of a suspend-mode backup, when a suspended VM wakes up between the
> vm_is_paused check in PVE::VZDump::QemuServer::prepare and
> PVE::VZDump::QemuServer::qga_fs_freeze. This causes the code to skip
> fs-freeze even if the VM has woken up, potentially leaving the file
> system in an inconsistent state.
> 
> To prevent this, do not treat the suspended runstate as paused when
> migrating or archiving a VM.
> 
> Signed-off-by: Filip Schauer <f.schauer at proxmox.com>
> ---
>  PVE/API2/Qemu.pm         | 4 ++--
>  PVE/QemuMigrate.pm       | 4 +++-
>  PVE/QemuServer.pm        | 6 +++---
>  PVE/VZDump/QemuServer.pm | 4 +++-
>  4 files changed, 11 insertions(+), 7 deletions(-)
> 
>

applied, with Fiona's R-b and extra info massaged into the
commit message, thanks!





More information about the pve-devel mailing list