Received: from eggs.gnu.org ([2001:4830:134:3::10]:58828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVKR6-0001wc-Fo for qemu-devel@nongnu.org; Wed, 02 Apr 2014 08:38:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WVKR0-0000mv-GF for qemu-devel@nongnu.org; Wed, 02 Apr 2014 08:38:32 -0400 Received: from mail-qc0-x234.google.com ([2607:f8b0:400d:c01::234]:41758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WVKR0-0000mq-B7 for qemu-devel@nongnu.org; Wed, 02 Apr 2014 08:38:26 -0400 Received: by mail-qc0-f180.google.com with SMTP id w7so119424qcr.25 for ; Wed, 02 Apr 2014 05:38:25 -0700 (PDT) Date: Wed, 2 Apr 2014 08:38:18 -0400 From: "Gabriel L. Somlo" Message-ID: <20140402123816.GJ9466@ERROL.INI.CMU.EDU> 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: Kevin O'Connor , 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): > > VOLUME 5: Platform Initialization Specification > Standards > 6 SMBIOS Protocol > > The function to call is EFI_SMBIOS_PROTOCOL.Add(). > > >> 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... :) Kevin, Laszlo, What if I found a way to send an entry point structure via fw_cfg, as a signal to ${BIOS} to simply assemble all the table-at-a-time blobs, but without generating any of its own ? I'm still working my way through whether *I* like the idea or not, but figured I'd throw it out there as a potential compromise ? :) Thx, --Gabriel