]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r346717: Make bhyve SMBIOS table topology aware
authorrgrimes <rgrimes@FreeBSD.org>
Sat, 25 May 2019 10:17:03 +0000 (10:17 +0000)
committerrgrimes <rgrimes@FreeBSD.org>
Sat, 25 May 2019 10:17:03 +0000 (10:17 +0000)
commitfa58253527cb663fe563b9d8a3c3dd49c1a3d4f7
tree9416ec40f58bd219e7aebdd59785ece23fd019fc
parent59b235d3e05fccfd6bdbfff65cfca8e4d439052e
MFC: r346717: Make bhyve SMBIOS table topology aware

When the CPU Topology was added to bhyve in r332298 the SMBIOS table was
missed, this table passes topology information to the system and was still
using the old concept of each vCPU is a socket with 1 core and 1 thread.
This code did not even try to use the old sysctl information to adjust
this data.

Correct that by building a proper SMBios table, mapping the > 254 cases to
0 per the SMBios 2.6 specification that is claimed by the structure.

Approved by: re (kib)
usr.sbin/bhyve/bhyverun.h
usr.sbin/bhyve/smbiostbl.c