Received: from eggs.gnu.org ([2001:4830:134:3::10]:52212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNkRU-0008L1-NW for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:47:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNkRL-00006z-OD for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:47:36 -0400 Received: from mail-qa0-x22c.google.com ([2607:f8b0:400d:c00::22c]:40483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNkRL-00006t-Jm for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:47:27 -0400 Received: by mail-qa0-f44.google.com with SMTP id f11so10000666qae.3 for ; Wed, 12 Mar 2014 07:47:27 -0700 (PDT) Date: Wed, 12 Mar 2014 10:44:12 -0400 From: "Gabriel L. Somlo" Message-ID: <20140312144411.GA17184@ERROL.INI.CMU.EDU> References: <1394532186.22422.24.camel@nilsson.home.kraxel.org> <1394550989-693-1-git-send-email-somlo@cmu.edu> <1394550989-693-12-git-send-email-somlo@cmu.edu> <1394612838.17393.19.camel@nilsson.home.kraxel.org> <20140312130556.GZ17184@ERROL.INI.CMU.EDU> <1394630694.17393.38.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1394630694.17393.38.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] [v2 PATCH 11/13] SMBIOS: Build full type 19 tables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: agraf@suse.de, qemu-devel@nongnu.org, armbru@redhat.com, alex.williamson@redhat.com, kevin@koconnor.net, lersek@redhat.com On Wed, Mar 12, 2014 at 02:24:54PM +0100, Gerd Hoffmann wrote: > On Mi, 2014-03-12 at 09:05 -0400, Gabriel L. Somlo wrote: > > I'm assuming this should be another post-Seabios-compatibility patch, > > at the end of the series, and I should still do the (start,size) > > arithmetic cut'n'pasted from SeaBIOS first, right ? > > You should get identical results with both methods. It's just that the > e820 method is more future proof, i.e. if the numa people add support > for non-contignous memory some day we don't have to adapt the smbios > code to handle it. OK, I'm looking for the least inelegant way to expose e820 to smbios.c :) Meanwhile: > > > I think we should just use e820_table (see pc.c) here. Loop over it and > > > add a type 19 table for each ram region in there. You mean only for entries of type E820_RAM, correct ? Thx, --G