From 62b26624c6d951a2e05e3dccdb29884efba31ea8 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Mon, 2 Jan 2023 11:11:15 +0100 Subject: [PATCH] memory hot-plug: fix check for maximal memory value Fixes: 4d3f29e ("memory hotplug patch v10") Signed-off-by: Alexandre Derumier Signed-off-by: Thomas Lamprecht --- PVE/QemuServer/Memory.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer/Memory.pm b/PVE/QemuServer/Memory.pm index f8fc5340..3eb1c7c9 100644 --- a/PVE/QemuServer/Memory.pm +++ b/PVE/QemuServer/Memory.pm @@ -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) {