qemu/hw/i386
Markus Armbruster ec2df8c10a smbios: Improve diagnostics for conflicting entries
We allow either tables or fields for the same type.  Makes sense,
because SeaBIOS uses fields only when no tables are present.

We do this by searching the SMBIOS blob for a previously added table
or field.  Error messages look like this:

    qemu-system-x86_64: -smbios type=1,serial=42: SMBIOS type 1 table already defined, cannot add field

User needs to know that "table" is defined by -smbios file=..., and
"field" by -smbios type=...

Instead of searching the blob, record additions of interest, and check
that.  Simpler, and makes better error messages possible:

    qemu-system-x86_64: -smbios file=smbios_type_1.bin: Can't mix file= and type= for same type
    qemu-system-x86_64: -smbios type=1,serial=42,serial=99: This is the conflicting setting

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
..
kvm cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
kvmvapic.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
Makefile.objs pc_sysfw: do not make it a device anymore 2013-08-12 09:31:14 -05:00
multiboot.c multiboot: Calculate upper_mem in the ROM 2013-06-28 14:01:52 -05:00
multiboot.h refer to FWCfgState explicitly 2013-06-02 18:14:02 +03:00
pc_piix.c Merge remote-tracking branch 'sstabellini/xen-2013-09-09' into staging 2013-09-11 14:45:57 -05:00
pc_q35.c Merge remote-tracking branch 'sstabellini/xen-2013-09-09' into staging 2013-09-11 14:45:57 -05:00
pc_sysfw.c pc_sysfw: do not make it a device anymore 2013-08-12 09:31:14 -05:00
pc.c cpu: Use QTAILQ for CPU list 2013-09-03 12:25:55 +02:00
smbios.c smbios: Improve diagnostics for conflicting entries 2013-09-28 23:49:39 +03:00
xen_domainbuild.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
xen_domainbuild.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_machine_pv.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00