Received: from eggs.gnu.org ([2001:4830:134:3::10]:45897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUGA7-0002fl-QD for qemu-devel@nongnu.org; Tue, 25 Aug 2015 11:29:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZUGA3-0001RW-V8 for qemu-devel@nongnu.org; Tue, 25 Aug 2015 11:29:23 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:34216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZUGA3-0001RS-Of for qemu-devel@nongnu.org; Tue, 25 Aug 2015 11:29:19 -0400 Received: by widdq5 with SMTP id dq5so19615929wid.1 for ; Tue, 25 Aug 2015 08:29:19 -0700 (PDT) Date: Tue, 25 Aug 2015 16:29:16 +0100 From: Leif Lindholm Message-ID: <20150825152916.GX10728@bivouac.eciton.net> References: <1439485767-20259-1-git-send-email-wei@redhat.com> <1439485767-20259-2-git-send-email-wei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [ARM SMBIOS V4 PATCH 1/2] smbios: add smbios 3.0 support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Wei Huang , Andrew Jones , Ard Biesheuvel , Eduardo Habkost , Ivan Khoronzhuk , "Michael S. Tsirkin" , "Gabriel L. Somlo" , Shannon Zhao , QEMU Developers , Roy Franz , Igor Mammedov , Paolo Bonzini , Laszlo Ersek , jdelvare@suse.de, Richard Henderson On Tue, Aug 25, 2015 at 04:17:42PM +0100, Peter Maydell wrote: > On 13 August 2015 at 18:09, Wei Huang 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. (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