mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 12:05:17 +00:00
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. (cherry picked from commit 87dfdb0b92f234a08408332095454260f1c86917)
This commit is contained in:
parent
dfa1548496
commit
0089a2058f
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user