mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 21:14:21 +00:00
qemu_memory_hotplug: remove unused $opt arg
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
ea0bc51427
commit
39c074fe23
@ -5046,7 +5046,7 @@ sub vmconfig_hotplug_pending {
|
||||
vmconfig_delete_or_detach_drive($vmid, $storecfg, $conf, $opt, $force);
|
||||
} elsif ($opt =~ m/^memory$/) {
|
||||
die "skip\n" if !$hotplug_features->{memory};
|
||||
PVE::QemuServer::Memory::qemu_memory_hotplug($vmid, $conf, $defaults, $opt);
|
||||
PVE::QemuServer::Memory::qemu_memory_hotplug($vmid, $conf, $defaults);
|
||||
} elsif ($opt eq 'cpuunits') {
|
||||
$cgroup->change_cpu_shares(undef);
|
||||
} elsif ($opt eq 'cpulimit') {
|
||||
@ -5121,7 +5121,7 @@ sub vmconfig_hotplug_pending {
|
||||
$vmid, $opt, $value, $arch, $machine_type);
|
||||
} elsif ($opt =~ m/^memory$/) { #dimms
|
||||
die "skip\n" if !$hotplug_features->{memory};
|
||||
$value = PVE::QemuServer::Memory::qemu_memory_hotplug($vmid, $conf, $defaults, $opt, $value);
|
||||
$value = PVE::QemuServer::Memory::qemu_memory_hotplug($vmid, $conf, $defaults, $value);
|
||||
} elsif ($opt eq 'cpuunits') {
|
||||
my $new_cpuunits = PVE::CGroup::clamp_cpu_shares($conf->{pending}->{$opt}); #clamp
|
||||
$cgroup->change_cpu_shares($new_cpuunits);
|
||||
|
@ -155,7 +155,7 @@ sub foreach_reverse_dimm {
|
||||
}
|
||||
|
||||
sub qemu_memory_hotplug {
|
||||
my ($vmid, $conf, $defaults, $opt, $value) = @_;
|
||||
my ($vmid, $conf, $defaults, $value) = @_;
|
||||
|
||||
return $value if !PVE::QemuServer::check_running($vmid);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user