Skip to contentSkip to conversation

SMBIOS support

PATCH In review Alexander Graf 1 participant 1 message Jan 8, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/9 SMBIOS support

This patch is based on the SMBios patch by Ryan Harper. As it is currently unclear, if this approach is taken or if the Bochsbios is going to be patched, I would recommend to not apply this patch for now. I still submit it for completeness and because I have touched parts of it.

Mac OS X will not run without SMBios support, so please bear in mind to have a working solution at stake if you want to try this.

Makefile.target +2 -2
Index: qemu-snapshot-2008-01-08_05/Makefile.target
===================================================================
@@ -441,7 +441,7 @@ ifeq ($(TARGET_BASE_ARCH), i386)
 VL_OBJS+= ide.o pckbd.o ps2.o vga.o $(SOUND_HW) dma.o
 VL_OBJS+= fdc.o mc146818rtc.o serial.o i8259.o i8254.o pcspk.o pc.o
 VL_OBJS+= cirrus_vga.o apic.o parallel.o acpi.o piix_pci.o
-VL_OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o
+VL_OBJS+= usb-uhci.o vmmouse.o vmport.o vmware_vga.o smbios.o
 CPPFLAGS += -DHAS_AUDIO -DHAS_AUDIO_CHOICE
 endif
 ifeq ($(TARGET_BASE_ARCH), ppc)
@@ -537,7 +537,7 @@ endif
 ifndef CONFIG_DARWIN
 ifndef CONFIG_WIN32
 ifndef CONFIG_SOLARIS
-VL_LIBS+=-lutil
+VL_LIBS+=-lutil -luuid
 endif
 endif
 endif
hw/pc.c +44 -1

63 lines not on this page · raw message

smbios.c new file +535 -0

535 lines not on this page · raw message

smbios_types.h new file +182 -0

182 lines not on this page · raw message

sysemu.h +4 -0
Index: qemu-snapshot-2008-01-08_05/sysemu.h
===================================================================
@@ -116,6 +116,10 @@ extern unsigned int nb_prom_envs;
 #define BIOS_SIZE (4 * 1024 * 1024)
 #endif
 
+#define SMBIOS_MAXIMUM_SIZE (32 << 10)
+int load_smbios_tables(uint8_t *entry, uint8_t *table,
+                       uint32_t phys_table_start);
+
 typedef enum {
     IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD
 } BlockInterfaceType;