All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Huang <wei@redhat.com>
To: Leif Lindholm <leif.lindholm@linaro.org>,
	Peter Maydell <peter.maydell@linaro.org>
Cc: Andrew Jones <drjones@redhat.com>,
	Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Eduardo Habkost <ehabkost@redhat.com>,
	Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Gabriel L. Somlo" <somlo@cmu.edu>,
	Shannon Zhao <zhaoshenglong@huawei.com>,
	QEMU Developers <qemu-devel@nongnu.org>,
	Roy Franz <roy.franz@linaro.org>,
	Igor Mammedov <imammedo@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Laszlo Ersek <lersek@redhat.com>,
	jdelvare@suse.de, Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [ARM SMBIOS V4 PATCH 1/2] smbios: add smbios 3.0 support
Date: Tue, 25 Aug 2015 10:59:59 -0500	[thread overview]
Message-ID: <55DC90FF.6080401@redhat.com> (raw)
In-Reply-To: <20150825152916.GX10728@bivouac.eciton.net>

On 08/25/2015 10:29 AM, Leif Lindholm wrote:
> On Tue, Aug 25, 2015 at 04:17:42PM +0100, Peter Maydell wrote:
>> On 13 August 2015 at 18:09, Wei Huang <wei@redhat.com> wrote:
>>> This patch adds support for SMBIOS 3.0 entry point. When caller invokes
>>> smbios_set_defaults(), it can specify entry point as 2.1 or 3.0. Then
>>> smbios_get_tables() will return the entry point table in right format.
>>
>>
>>> -/* SMBIOS entry point (anchor).
>>> - * BIOS must place this at a 16-bit-aligned address between 0xf0000 and 0xfffff.
>>> +/* SMBIOS entry point
>>> + * BIOS must place this at a 16-bit-aligned address between 0xf0000
>>> + * and 0xfffff.
>>>   */
>>> -struct smbios_entry_point {
>>> +struct smbios_21_entry_point {
>>>      uint8_t anchor_string[4];
>>>      uint8_t checksum;
>>>      uint8_t length;
>>> @@ -58,6 +52,25 @@ struct smbios_entry_point {
>>>      uint8_t smbios_bcd_revision;
>>>  } QEMU_PACKED;
>>
>> This breaks 'make check' for x86, because tests/bios-tables-test.c
>> still uses 'struct smbios_entry_point' and no longer compiles
>> if this patch is applied.
> 
> Urgh.
> 
>> I'm removing these two patches from my target-arm queue.
> 
> Fair enough.
> 
> Wei - is there actually any particular point in renaming this
> structure? In all versions of the specification before 3.0, this was
> only known as the "smbios entry point". Only with the introduction of
> SMBIOS 3.0 this was retrospectively renamed.

I can take this suggestion, with clear comment in header file so nobody
will get confused. Peter, please let me know if you object.

The new patches should be out in a short while.

Thanks,
-Wei

> 
> (And personally, I find that renaming a bit counterintuitive, since it
> is still a valid 32-bit entry point in SMBIOS3, and was the only entry
> point up until and including SMBIOS 2.8.)


> 
> /
>     Leif
> 

  reply	other threads:[~2015-08-25 16:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13 17:09 [Qemu-devel] [ARM SMBIOS V4 PATCH 0/2] SMBIOS Support for ARM Wei Huang
2015-08-13 17:09 ` [Qemu-devel] [ARM SMBIOS V4 PATCH 1/2] smbios: add smbios 3.0 support Wei Huang
2015-08-13 17:46   ` Laszlo Ersek
2015-08-25 15:17   ` Peter Maydell
2015-08-25 15:29     ` Leif Lindholm
2015-08-25 15:59       ` Wei Huang [this message]
2015-08-25 16:01         ` Peter Maydell
2015-08-26 16:41           ` Wei Huang
2015-08-26 17:04             ` Leif Lindholm
2015-08-13 17:09 ` [Qemu-devel] [ARM SMBIOS V4 PATCH 2/2] smbios: implement smbios support for mach-virt Wei Huang
2015-08-20  0:21 ` [Qemu-devel] [ARM SMBIOS V4 PATCH 0/2] SMBIOS Support for ARM Peter Maydell

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=55DC90FF.6080401@redhat.com \
    --to=wei@redhat.com \
    --cc=ard.biesheuvel@linaro.org \
    --cc=drjones@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=ivan.khoronzhuk@linaro.org \
    --cc=jdelvare@suse.de \
    --cc=leif.lindholm@linaro.org \
    --cc=lersek@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=roy.franz@linaro.org \
    --cc=rth@twiddle.net \
    --cc=somlo@cmu.edu \
    --cc=zhaoshenglong@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.