]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer/Memory.pm
memory: replace deprecated check_running() call
authorFiona Ebner <f.ebner@proxmox.com>
Mon, 4 Sep 2023 11:39:47 +0000 (13:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Sep 2023 15:08:48 +0000 (17:08 +0200)
commit2951c45ec0efa2c7cac99d64ecad0f263d4f0878
treef561a27d3d5249c76b5974a2443b6254c2ca3a59
parent0e32bf5bc203b65f4b717c4dfdc9b010530eae8b
memory: replace deprecated check_running() call

PVE::QemuServer::check_running() does both
PVE::QemuConfig::assert_config_exists_on_node()
PVE::QemuServer::Helpers::vm_running_locally()

The former one isn't needed here when doing hotplug, because the API
already assert that the VM config exists. It also would introduce a
new cyclic dependency between PVE::QemuServer::Memory <->
PVE::QemuConfig with the proposed virtio-mem patch set.

In preparation to remove the cyclic include of PVE::QemuServer in the
memory module.

No functional change intended.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer/Memory.pm