qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Cole Robinson <crobinso@redhat.com>
Cc: seabios@seabios.org, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [SeaBIOS] bug: incorrect uuid in seabios output
Date: Thu, 26 Nov 2015 08:43:19 +0100	[thread overview]
Message-ID: <1448523799.8613.7.camel@redhat.com> (raw)
In-Reply-To: <5654969F.3000306@redhat.com>

On Di, 2015-11-24 at 11:55 -0500, Cole Robinson wrote:
> Hi,
> 
> The UUID seabios reports in its boot output doesn't match what is passed via
> qemu -uuid option. An example is reported here:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1284259
> 
> This is due to:
> 
> commit caad057bb6ce86a9cb71520af395fd0bd04a659f
> Author: Eduardo Habkost <ehabkost@redhat.com>
> Date:   Wed Oct 29 11:26:08 2014 -0200
> 
>     smbios: Encode UUID according to SMBIOS specification
> 
>     Differently from older versions, SMBIOS version 2.6 is explicit about
>     the encoding of UUID fields:
> 
>     > Although RFC 4122 recommends network byte order for all fields, the PC
>     > industry (including the ACPI, UEFI, and Microsoft specifications) has
>     > consistently used little-endian byte encoding for the first three fields:
>     > time_low, time_mid, time_hi_and_version. The same encoding, also known as
>     > wire format, should also be used for the SMBIOS representation of the UUID.
>     >
>     > The UUID {00112233-4455-6677-8899-AABBCCDDEEFF} would thus be represented
>     > as 33 22 11 00 55 44 77 66 88 99 AA BB CC DD EE FF.
> 
>     The dmidecode tool implements this and decodes the above "wire format"
>     when SMBIOS version >= 2.6. We moved from SMBIOS version 2.4 to 2.8 when
>     we started building the SMBIOS entry point inside QEMU, on commit
>     c97294ec1b9e36887e119589d456557d72ab37b5.
> 
> 
> seabios doesn't seem to handle this special UUID format when reading from smbios.

Hmm.  Changing the ordering in display_uuid() is easy.  There seems to
be no easy way to figure which format to use though.  Checking the
version like dmidecode doesn't fly as there are qemu versions with old
format but version smbios 2.8 in the wild ...

cheers,
  Gerd

  reply	other threads:[~2015-11-26  7:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-24 16:55 [Qemu-devel] bug: incorrect uuid in seabios output Cole Robinson
2015-11-26  7:43 ` Gerd Hoffmann [this message]
2015-11-26 18:40   ` [Qemu-devel] [SeaBIOS] " Laszlo Ersek
2015-11-27 16:32     ` Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1448523799.8613.7.camel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=crobinso@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=seabios@seabios.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).