/[qemu]
ViewVC logotype

Revision 7163


Jump to revision: Previous Next
Author: aliguori
Date: Fri Apr 17 18:59:56 2009 UTC (14 years, 7 months ago)
Changed paths: 9
Log Message:
qemu: Add support for SMBIOS command line otions (Alex Williamson)

Create a new -smbios option (x86-only) to allow binary SMBIOS entries
to be passed through to the BIOS or modify the default values of
individual fields of type 0 and 1 entries on the command line.

Binary SMBIOS entries can be generated as follows:

dmidecode -t 1 -u | grep $'^\t\t[^"]' | xargs -n1 | \
        perl -lne 'printf "%c", hex($_)' > smbios_type_1.bin

These can then be passed to the BIOS using this switch:

 -smbios file=smbios_type_1.bin

Command line generation supports the following syntax:

 -smbios type=0[,vendor=str][,version=str][,date=str][,release=%d.%d]
 -smbios type=1[,manufacturer=str][,product=str][,version=str][,serial=str]
              [,uuid=$(uuidgen)][,sku=str][,family=str]

For instance, to add a serial number to the type 1 table:

 -smbios type=1,serial=0123456789

Interface is extensible to support more fields/tables as needed.

aliguori: remove texi formatting from help output

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>


Changed paths:

Path Details
Directorytrunk/Makefile.target modified , text changed
Directorytrunk/hw/pc.c modified , text changed
Directorytrunk/hw/smbios.c added
Directorytrunk/hw/smbios.h added
Directorytrunk/pc-bios/bios-pq/0012-load-smbios-entries-and-files-from-qemu.patch added
Directorytrunk/pc-bios/bios-pq/series modified , text changed
Directorytrunk/pc-bios/bios.bin modified , text changed
Directorytrunk/qemu-options.hx modified , text changed
Directorytrunk/vl.c modified , text changed

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5