]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r346714: Add accessor function for vm->maxcpus
authorrgrimes <rgrimes@FreeBSD.org>
Sat, 25 May 2019 11:27:56 +0000 (11:27 +0000)
committerrgrimes <rgrimes@FreeBSD.org>
Sat, 25 May 2019 11:27:56 +0000 (11:27 +0000)
commited66cf9542b42240ade32a2b19e60e859a81a325
tree6dda0242012409a413e8a91bb3248d881ead6ff9
parentfa58253527cb663fe563b9d8a3c3dd49c1a3d4f7
MFC: r346714: Add accessor function for vm->maxcpus

Replace most VM_MAXCPU constant useses with an accessor function to
vm->maxcpus which for now is initialized and kept at the value of
VM_MAXCPUS.

This is a rework of Fabian Freyer (fabian.freyer_physik.tu-berlin.de)
work from D10070 to adjust it for the cpu topology changes that
occured in r332298

Approved by: re (kib)
sys/amd64/include/vmm.h
sys/amd64/vmm/amd/svm.c
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/io/vlapic.c
sys/amd64/vmm/vmm.c
sys/amd64/vmm/vmm_dev.c
sys/amd64/vmm/vmm_lapic.c
sys/amd64/vmm/vmm_stat.c