]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make bhyve SMBIOS table topology aware
authorrgrimes <rgrimes@FreeBSD.org>
Thu, 25 Apr 2019 22:53:55 +0000 (22:53 +0000)
committerrgrimes <rgrimes@FreeBSD.org>
Thu, 25 Apr 2019 22:53:55 +0000 (22:53 +0000)
commit0ca8ec0e096851832393e52785678094fde0cf5a
tree6d7ac7200ed379e5451f624d9516cb2992765f42
parent5822161300bbbbfda9919d5f9b011a7ecb192907
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.

Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Approved by: bde and/or phk (mentor), jhb (maintainer)
MFC: 3 days
Differential Revision: https://reviews.freebsd.org/D18998
usr.sbin/bhyve/bhyverun.h
usr.sbin/bhyve/smbiostbl.c