[pve-devel] [PATCH qemu-server v3 4/8] snapshot: save vmstate: avoid using deprecated check_running() function
Fiona Ebner
f.ebner at proxmox.com
Thu Sep 4 14:40:48 CEST 2025
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
New in v3.
src/PVE/QemuConfig.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/QemuConfig.pm b/src/PVE/QemuConfig.pm
index e0853d65..e3ba240e 100644
--- a/src/PVE/QemuConfig.pm
+++ b/src/PVE/QemuConfig.pm
@@ -244,7 +244,7 @@ sub __snapshot_save_vmstate {
# get current QEMU -cpu argument to ensure consistency of custom CPU models
my $runningcpu;
- if (my $pid = PVE::QemuServer::check_running($vmid)) {
+ if (my $pid = PVE::QemuServer::Helpers::vm_running_locally($vmid)) {
$runningcpu = PVE::QemuServer::CPUConfig::get_cpu_from_running_vm($pid);
}
--
2.47.2
More information about the pve-devel
mailing list