fix(host): host init no numa node (#22947)

This commit is contained in:
wanyaoqi
2025-07-25 00:33:16 +08:00
committed by GitHub
parent 1d7b27e5e3
commit d83fd7490a
+4
View File
@@ -221,6 +221,10 @@ func NewGuestCpuSetCounter(info *hostapi.HostTopology, reservedCpus *cpuset.CPUS
cpuSetCounter := new(CpuSetCounter)
cpuSetCounter.Nodes = make([]*NumaNode, len(info.Nodes))
cpuSetCounter.NumaEnabled = numaAllocate
if len(info.Nodes) == 0 {
return cpuSetCounter, nil
}
hasL3Cache := false
for i := 0; i < len(info.Nodes); i++ {
node, err := NewNumaNode(info.Nodes[i].ID, cpuSetCounter.NumaEnabled, hugepageSizeKB)