]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix bhyve SMBIOS type 19 handling to avoid misreporting total RAM amount
authorbcran <bcran@FreeBSD.org>
Fri, 27 Nov 2020 08:00:32 +0000 (08:00 +0000)
committerbcran <bcran@FreeBSD.org>
Fri, 27 Nov 2020 08:00:32 +0000 (08:00 +0000)
commitbcebd089e2a8d9a4b0235625350ffa0c08019323
treecc0cf7a8b508f3162d6af62c642da505a72c04f5
parent72db4d62c4b86a0c99197a0b5e67379ac15c0e18
Fix bhyve SMBIOS type 19 handling to avoid misreporting total RAM amount

This fixes the amount of memory displayed in the EDK2 UiApp to be the same
as passed on the bhyve command line. Otherwise, 8GB is displayed as 4GB,
32GB as 28GB etc.

Reviewed by: jhb, kib, rgrimes
Differential Revision: https://reviews.freebsd.org/D27348
usr.sbin/bhyve/smbiostbl.c