qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 2/2] qemu:bios: Read external SMBIOS entries fro


From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 2/2] qemu:bios: Read external SMBIOS entries from the VM
Date: Mon, 06 Apr 2009 14:52:40 -0500
User-agent: Thunderbird 2.0.0.21 (X11/20090320)

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 <address@hidden>
+
+        /* 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]