mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 13:04:12 +00:00
memory hot-plug: fix check for maximal memory value
Fixes: 4d3f29e
("memory hotplug patch v10")
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a46d039d3c
commit
62b26624c6
@ -171,7 +171,7 @@ sub qemu_memory_hotplug {
|
||||
|
||||
die "memory can't be lower than $static_memory MB" if $value < $static_memory;
|
||||
my $MAX_MEM = get_max_mem($conf);
|
||||
die "you cannot add more memory than max mem $MAX_MEM MB!\n" if $memory > $MAX_MEM;
|
||||
die "you cannot add more memory than max mem $MAX_MEM MB!\n" if $value > $MAX_MEM;
|
||||
|
||||
if ($value > $memory) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user