Received: from eggs.gnu.org ([2001:4830:134:3::10]:54843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWGfA-0005mF-JY for qemu-devel@nongnu.org; Fri, 04 Apr 2014 22:49:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWGf4-00050J-Ax for qemu-devel@nongnu.org; Fri, 04 Apr 2014 22:48:56 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:38740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWGf4-000508-4o for qemu-devel@nongnu.org; Fri, 04 Apr 2014 22:48:50 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so4233616pbb.19 for ; Fri, 04 Apr 2014 19:48:49 -0700 (PDT) Date: Fri, 4 Apr 2014 22:48:46 -0400 From: Kevin O'Connor Message-ID: <20140405024845.GB13086@morn.localdomain> References: <20140331201807.GG9466@ERROL.INI.CMU.EDU> <533A7B60.7080408@redhat.com> <20140401143902.GA6462@morn.localdomain> <533ADF7D.6010804@redhat.com> <20140401184726.GH9466@ERROL.INI.CMU.EDU> <20140401202832.GA24065@morn.localdomain> <20140401212808.GI9466@ERROL.INI.CMU.EDU> <533B332C.7090701@redhat.com> <20140401220035.GB28000@morn.localdomain> <533B3F2E.1050904@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <533B3F2E.1050904@redhat.com> Subject: Re: [Qemu-devel] E820 (Re: [v4 PATCH 00/12] SMBIOS: build full tables in QEMU) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: "Gabriel L. Somlo" , seabios@seabios.org, qemu-devel@nongnu.org On Wed, Apr 02, 2014 at 12:35:26AM +0200, Laszlo Ersek wrote: > On 04/02/14 00:00, Kevin O'Connor wrote: > > On Tue, Apr 01, 2014 at 11:44:12PM +0200, Laszlo Ersek wrote: > >> Right now, OVMF can accept individual fields, or table-at-a-time blobs, > >> via fw_cfg. > >> > >> The internal interface (EFI_SMBIOS_PROTOCOL) expects one table at a time > >> (for which table-at-a-time blobs are a perfect match). > > > > I wasn't aware of this. The SMBIOS spec calls for all the sub-tables > > to be concatenanted into a single linear area of memory. Is there > > something in EFI or OVMF that is dictating otherwise? Can you provide > > a link so I can further understand? (I briefly checked through the > > UEFI v2.3.1 spec and nothing popped out at me.) > > The "UEFI Specification" is not relevant here, the "UEFI Platform > Initialization (PI) Specification" is. > > You can download the PI spec at . The > relevant section is (I have version 1.2.1): Oh, those crazy UEFI guys! The internal edk2 code appears to use these individual calls to ultimately build the concatenated smbios table from them. So, nothing special here - just standard UEFI over-design. > >> I think that concatenating table-at-a-time blobs in SeaBIOS is easier > >> than parsing & splitting a complete dump into tables in OVMF. > > > > I don't think it's very difficult either way. It would be nice, > > though, if there was just one owner for the smbios. The current setup > > where some data comes from QEMU and some from the firmware, along with > > mechanisms for providing defaults and overrides is way too complex in > > my opinion. > > I certainly agree with the direction. I'm OK with the current > table-at-a-time blobs (which should leave only the SMBIOS entry point to > the firmware). I'm also OK with any new, comprehensive format that > allows me, with reasonable parsing, to identify the individual tables in > the big concat (and to throw away the passed down entry point). > > I already wrote display_uuid() [src/fw/smbios.c] for SeaBIOS, so I guess > I could repeat the exercise if it's unavoidable... :) Makes sense. Thanks. -Kevin