FreeBSD/src da2f3f9 (r348271)sys/amd64/include vmm.h, sys/amd64/vmm vmm.c vmm_dev.c

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)
DeltaFile
+44-37sys/amd64/vmm/vmm.c
+22-11sys/amd64/vmm/vmm_dev.c
+7-4sys/amd64/vmm/io/vlapic.c
+6-2sys/amd64/vmm/intel/vmx.c
+2-2sys/amd64/vmm/vmm_lapic.c
+3-1sys/amd64/vmm/amd/svm.c
+1-1sys/amd64/vmm/vmm_stat.c
+1-0sys/amd64/include/vmm.h
+86-588 files

UnifiedSplitRaw