diff options
author | grehan <grehan@FreeBSD.org> | 2014-09-23 01:17:22 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2014-09-23 01:17:22 +0000 |
commit | e105f82a888e8a397c77f2ceac9995e721d56393 (patch) | |
tree | 350f57a14790b3c07c36feefafe74247d17f058d /usr.sbin | |
parent | 06bee38d37ce7a0db0ac605a748fc025de393327 (diff) | |
download | FreeBSD-src-e105f82a888e8a397c77f2ceac9995e721d56393.zip FreeBSD-src-e105f82a888e8a397c77f2ceac9995e721d56393.tar.gz |
Correct display of bhyve SMBIOS UUIDs with dmidecode by bumping the version.
The mixed little/big-endianness of SMBIOS UUIDs was clarified in v2.6
of the SMBIOS spec. dmidecode uses the reported version of SMBIOS to
determine the layout and what to byte-swap.
bhyve's SMBIOS reported as 2.4 though it implemented the 2.6-style of
memory layout. This resulted in dmidecode reporting a different
UUID than one passed in via the -U option.
Fix by exporting a version of 2.6.
Reviewed by: tychon
Reported by: julian
MFC after: 1 day
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bhyve/smbiostbl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/smbiostbl.c b/usr.sbin/bhyve/smbiostbl.c index 28c7eb2..59a1358 100644 --- a/usr.sbin/bhyve/smbiostbl.c +++ b/usr.sbin/bhyve/smbiostbl.c @@ -737,7 +737,7 @@ smbios_ep_initializer(struct smbios_entry_point *smbios_ep, uint32_t staddr) smbios_ep->eplen = 0x1F; assert(sizeof (struct smbios_entry_point) == smbios_ep->eplen); smbios_ep->major = 2; - smbios_ep->minor = 4; + smbios_ep->minor = 6; smbios_ep->revision = 0; memcpy(smbios_ep->ianchor, SMBIOS_ENTRY_IANCHOR, SMBIOS_ENTRY_IANCHORLEN); |