提交 87dfdb0b 编写于 作者: M Martin Kletzander

lxc: return correct number of CPUs

When getting number of CPUs the host has assigned, there was always
number "1" returned. Even though all lxc domains with no pinning
launched by libvirt run on all pCPUs (by default, no matter what's the
number), we should at least return the same number as the user
specified when creating the domain.
上级 be6c46b1
......@@ -590,7 +590,7 @@ static int lxcDomainGetInfo(virDomainPtr dom,
}
info->maxMem = vm->def->mem.max_balloon;
info->nrVirtCpu = 1;
info->nrVirtCpu = vm->def->vcpus;
ret = 0;
cleanup:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册