Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2014 23:09:35 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r272147 - stable/10/usr.sbin/bhyve
Message-ID:  <201409252309.s8PN9ZPm056028@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grehan
Date: Thu Sep 25 23:09:35 2014
New Revision: 272147
URL: http://svnweb.freebsd.org/changeset/base/272147

Log:
  MFC r272007
  
  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.
  
  Approved by:	re (gjb)

Modified:
  stable/10/usr.sbin/bhyve/smbiostbl.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/bhyve/smbiostbl.c
==============================================================================
--- stable/10/usr.sbin/bhyve/smbiostbl.c	Thu Sep 25 23:04:37 2014	(r272146)
+++ stable/10/usr.sbin/bhyve/smbiostbl.c	Thu Sep 25 23:09:35 2014	(r272147)
@@ -737,7 +737,7 @@ smbios_ep_initializer(struct smbios_entr
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409252309.s8PN9ZPm056028>