mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-07 09:02:10 +00:00
Disable memory hotplugging for custom NUMA topologies
This cannot work, since we adjust the 'memory' property of the VM config on hotplugging, but then the user-defined NUMA topology won't match for the next start attempt. Check needs to happen here, since it otherwise fails early with "total memory for NUMA nodes must be equal to vm static memory". With this change the error message reflects what is actually happening and doesn't allow VMs with exactly 1GB of RAM either. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com> Tested-by: Alwin Antreich <a.antreich@proxmox.com>
This commit is contained in:
parent
e8705fc59e
commit
456bab5445
@ -225,6 +225,12 @@ sub config {
|
||||
if ($hotplug_features->{memory}) {
|
||||
die "NUMA needs to be enabled for memory hotplug\n" if !$conf->{numa};
|
||||
die "Total memory is bigger than ${MAX_MEM}MB\n" if $memory > $MAX_MEM;
|
||||
|
||||
for (my $i = 0; $i < $MAX_NUMA; $i++) {
|
||||
die "cannot enable memory hotplugging with custom NUMA topology\n"
|
||||
if $conf->{"numa$i"};
|
||||
}
|
||||
|
||||
my $sockets = 1;
|
||||
$sockets = $conf->{sockets} if $conf->{sockets};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user