[pve-devel] [PATCH] add hugepages option v5

Alexandre DERUMIER aderumier at odiso.com
Wed Jun 8 05:47:46 CEST 2016


>>But parse_numa is still in QemuServer, did you mean to include another
>>hunk in this patch moving this function?

Ok, my bad,here a fix (better to keep it in QemuServer, like other parse sub)


--- a/PVE/QemuServer/Memory.pm
+++ b/PVE/QemuServer/Memory.pm
@@ -187,7 +187,7 @@ sub config {
        my $numa_totalmemory = undef;
        for (my $i = 0; $i < $MAX_NUMA; $i++) {
            next if !$conf->{"numa$i"};
-           my $numa = parse_numa($conf->{"numa$i"});
+           my $numa = PVE::QemuServer::parse_numa($conf->{"numa$i"});
            next if !$numa;
            # memory
            die "missing NUMA node$i memory value\n" if !$numa->{memory};
@@ -375,7 +375,7 @@ sub hugepages_topology {
     #custom numa topology
     for (my $i = 0; $i < $MAX_NUMA; $i++) {
        next if !$conf->{"numa$i"};
-       my $numa = parse_numa($conf->{"numa$i"});
+       my $numa = PVE::QemuServer::parse_numa($conf->{"numa$i"});
        next if !$numa;
 
        $numa_custom_topology = 1;
-- 



More information about the pve-devel mailing list