Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvgK5-0002IV-Iq for qemu-devel@nongnu.org; Wed, 07 Oct 2009 19:53:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvgK0-0002HM-VH for qemu-devel@nongnu.org; Wed, 07 Oct 2009 19:53:33 -0400 Received: from [199.232.76.173] (port=59455 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvgK0-0002HD-Ja for qemu-devel@nongnu.org; Wed, 07 Oct 2009 19:53:28 -0400 Received: from imta-38.everyone.net ([216.200.145.38]:56055 helo=omta0105.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvgK0-0005Ae-36 for qemu-devel@nongnu.org; Wed, 07 Oct 2009 19:53:28 -0400 Date: Wed, 7 Oct 2009 19:53:26 -0400 From: Kevin O'Connor Message-ID: <20091007235326.GD15407@morn.localdomain> References: <1254932211-28010-1-git-send-email-gleb@redhat.com> <1254932211-28010-2-git-send-email-gleb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1254932211-28010-2-git-send-email-gleb@redhat.com> Subject: [Qemu-devel] Re: [PATCH 2/2] Load SMBIOS entries and files from qemu List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: qemu-devel@nongnu.org On Wed, Oct 07, 2009 at 06:16:51PM +0200, Gleb Natapov wrote: > Allow SMBIOS fields to be overridden and entries replaced by those > read from qemu. > > This is port of commit f4a09e759469be74e2598758bfae623b555c4cae > from qemu pc-bios tree. > > Signed-off-by: Gleb Natapov Two comments: The smbios code is allocating 2K of high ram for the full table. Now that tables can be pulled in from qemu, is it assured that the space wont overflow? [...] > +#define load_str_field_with_default(type, field, def) \ [...] These macros are really ugly - isn't there a better way to do this? -Kevin