Received: from eggs.gnu.org ([2001:4830:134:3::10]:35794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGVjQ-0003XW-E4 for qemu-devel@nongnu.org; Thu, 20 Feb 2014 10:40:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGVjJ-0006cL-53 for qemu-devel@nongnu.org; Thu, 20 Feb 2014 10:40:12 -0500 Received: from mail-qc0-f169.google.com ([209.85.216.169]:37175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGVjJ-0006bN-1d for qemu-devel@nongnu.org; Thu, 20 Feb 2014 10:40:05 -0500 Received: by mail-qc0-f169.google.com with SMTP id e9so1273322qcy.28 for ; Thu, 20 Feb 2014 07:40:04 -0800 (PST) Date: Thu, 20 Feb 2014 10:38:04 -0500 From: "Gabriel L. Somlo" Message-ID: <20140220153803.GD25087@ERROL.INI.CMU.EDU> References: <20140217160947.GO29329@ERROL.INI.CMU.EDU> <20140217203333.GB30268@morn.localdomain> <1392718893.4724.12.camel@nilsson.home.kraxel.org> <20140218191728.GS29329@ERROL.INI.CMU.EDU> <1392803974.20987.13.camel@nilsson.home.kraxel.org> <20140219204030.GA25087@ERROL.INI.CMU.EDU> <1392910047.9377.3.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1392910047.9377.3.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] [PATCH v2, Ping] SMBIOS: Upgrade Type17 to v2.3, add Type2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: seabios@seabios.org, qemu-devel@nongnu.org, agraf@suse.de, Kevin O'Connor , pbonzini@redhat.com, lersek@redhat.com On Thu, Feb 20, 2014 at 04:27:27PM +0100, Gerd Hoffmann wrote: > On Mi, 2014-02-19 at 15:40 -0500, Gabriel L. Somlo wrote: > > So I gave up on that relatively quickly, as there's no easy and > > convenient way to "harvest" a binary of just one table type from > > a host that works the way I want it... :( > > "dmidecode --type 2" ? That doesn't work with --dump-bin, to get me something I could just load with "-smbios file=". On Wed, Feb 19, 2014 at 11:20:37PM +0100, Laszlo Ersek wrote: > If you want to export a new table whole-sale (SMBIOS_TABLE_ENTRY), > then > you don't have to modify SeaBIOS. However, in qemu: > - you either need to pass single-table blobs on the qemu command > line, or > - patch qemu so that it internally prepares the *complete* table for > the > boot firmware (meaning you must encode knowledge about formatted vs. > unformatted fields in qemu -- you must set up the unformatted area > and > the string indices yourself). (*) > > You have to encode the formatted vs. unformatted knowledge > *somewhere*. > You can push it around (qemu command line, qemu code, seabios code), > but > you have to encode it explicitly somewhere. > > (Writing the SMBIOS patches for OVMF (type0 and type1) took me three > days of *uninterrupted* misery ^W coding.) > > Preferably, (*) should be implemented, because then SeaBIOS and OVMF > can > both profit immediately. O:-) At this point, the question is "cut'n'paste from SeaBIOS" vs. rewrite the table generation routines from scratch in QEMU? I remember ACPI was mostly cut'n'pasted into QEMU, so would that be an OK starting point for SMBIOS as well ? I looked at licenses, and the SeaBIOS smbios.c file is gplv3, whereas the current smbios.c in QEMU is some combination of gplv2 and gplv2+. Any thoughts on whether that's a problem, legally speaking ? Thanks, --Gabriel