From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrfrL-0005lU-Pd for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:03:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrfrH-0005gQ-6B for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:03:03 -0400 Received: from [199.232.76.173] (port=42072 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrfrG-0005gC-W1 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:02:59 -0400 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:43852) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrfrG-0005Hm-D4 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 18:02:58 -0400 From: Alex Williamson Date: Wed, 08 Apr 2009 15:58:40 -0600 Message-ID: <20090408215733.11530.29919.stgit@kvm.aw> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 0/3] qemu: SMBIOS support Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, aliguori@us.ibm.com Cc: alex.williamson@hp.com, kvm@vger.kernel.org This is a new version based on everyone's feedback. I now support creating type 0 & 1 SMBIOS fields from the command line as well as loading binary blob entries. It should be pretty trivial to add support for modifying other generated tables from the command line. Rather than moving the parsing code to vl.c, I made new smbios.[ch] files, which seems to clean things up nicely. I've implemented a collision detector, so you can't pass both a binary blob containing a type 1 entry and options to modify the entry. Useful error messages should be generated if this is attempted. I've also incorporated the -uuid option, so it's handled by the bios the same as any other modification to an smbios field. Let me know if there are any further suggestions. Thanks, Alex --- Alex Williamson (3): qemu:bios: Load SMBIOS entries and files from qemu qemu: Add support for SMBIOS command line otions qemu: Add prototype and make qemu_uuid_parse() non-static Makefile.target | 2 bios/rombios32.c | 299 +++++++++++++++++++++++++++++++++++++++++++------------ hw/pc.c | 9 + hw/smbios.c | 224 +++++++++++++++++++++++++++++++++++++++++ hw/smbios.h | 162 +++++++++++++++++++++++++++++ qemu-options.hx | 21 +++ sysemu.h | 1 vl.c | 13 ++ 8 files changed, 666 insertions(+), 65 deletions(-) create mode 100644 hw/smbios.c create mode 100644 hw/smbios.h