mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-02 13:30:18 +00:00
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>
This commit is contained in:
parent
0e32bf5bc2
commit
2951c45ec0
@ -175,7 +175,7 @@ sub foreach_dimm{
|
||||
sub qemu_memory_hotplug {
|
||||
my ($vmid, $conf, $defaults, $value) = @_;
|
||||
|
||||
return $value if !PVE::QemuServer::check_running($vmid);
|
||||
return $value if !PVE::QemuServer::Helpers::vm_running_locally($vmid);
|
||||
|
||||
my $sockets = $conf->{sockets} || 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user