From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqusE-0000lA-AB for qemu-devel@nongnu.org; Mon, 06 Apr 2009 15:52:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lqus9-0000jY-6i for qemu-devel@nongnu.org; Mon, 06 Apr 2009 15:52:49 -0400 Received: from [199.232.76.173] (port=44544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lqus8-0000jT-Tn for qemu-devel@nongnu.org; Mon, 06 Apr 2009 15:52:44 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:55141) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lqus8-00043W-HH for qemu-devel@nongnu.org; Mon, 06 Apr 2009 15:52:44 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e8.ny.us.ibm.com (8.13.1/8.13.1) with ESMTP id n36Ji6v1003047 for ; Mon, 6 Apr 2009 15:44:06 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n36Jqhb0187114 for ; Mon, 6 Apr 2009 15:52:43 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n36Jp599030443 for ; Mon, 6 Apr 2009 15:51:06 -0400 Message-ID: <49DA5D88.3010201@us.ibm.com> Date: Mon, 06 Apr 2009 14:52:40 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1237835133.7276.1107.camel@lappy> <1237835467.15558.5.camel@lappy> In-Reply-To: <1237835467.15558.5.camel@lappy> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 2/2] qemu:bios: Read external SMBIOS entries from the VM Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alex Williamson Cc: qemu-devel , kvm Alex Williamson wrote: > SMBIOS entries can be read from the VM using the same mechanism > as additional ACPI tables. External entries will supercede > generated entries. > > Signed-off-by: Alex Williamson > + > + /* A type 1 entry provides a UUID, but so does the QEMU_CFG_UUID > + * port. If the QEMU_CFG_UUID value is not zero, use it, otherwise > + * use whatever was in the provided table. */ > + if (type == 1) { > + const static uint8_t null_uuid[16] = { 0 }; > + if (memcmp(bios_uuid, null_uuid, 16)) { > + struct smbios_type_1 *t = (struct smbios_type_1 *)*q; > + memcpy(t->uuid, bios_uuid, 16); > + } > + } > This is what I was getting at in my other post. I'd sort of rather that a certain set of SMBIOS tables be specified at a higher level (like uuid, manufacture, vendor, etc.) and the blobs just be the OEM tables. I think that matches the work going on with the device configuration files more appropriately. Regards, Anthony Liguori