qemu-e2k/include/hw/i386
Markus Armbruster fc3b32958a smbios: Make multiple -smbios type= accumulate sanely
Currently, -smbios type=T,NAME=VAL,... adds one field (T,NAME) with
value VAL to fw_cfg for each unique NAME.  If NAME occurs multiple
times, the last one's VAL is used (before the QemuOpts conversion, the
first one was used).

Multiple -smbios can add multiple fields with the same (T, NAME).
SeaBIOS reads all of them from fw_cfg, but uses only the first field
(T, NAME).  The others are ignored.

"First one wins, subsequent ones get ignored silently" isn't nice.  We
commonly let the last option win.  Useful, because it lets you
-readconfig first, then selectively override with command line
options.

Clean up -smbios to work the common way.  Accumulate the settings,
with later ones overwriting earlier ones.  Put the result into fw_cfg
(no more useless duplicates).

Bonus cleanup: qemu_uuid_parse() no longer sets SMBIOS system uuid by
side effect.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2013-09-28 23:49:39 +03:00
..
apic-msidef.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
apic.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
apic_internal.h target-i386: Move APIC to ICC bus 2013-05-01 13:06:07 +02:00
ich9.h ich9: kill cmos_s3 2013-04-24 11:50:18 -05:00
ioapic.h pc: move IO_APIC_DEFAULT_ADDRESS to include/hw/i386/ioapic.h 2013-07-29 19:33:32 -05:00
ioapic_internal.h hw: move headers to include/ 2013-04-08 18:13:10 +02:00
pc.h e1000: add interrupt mitigation support 2013-09-06 17:25:52 +02:00
smbios.h smbios: Make multiple -smbios type= accumulate sanely 2013-09-28 23:49:39 +03:00