qemu/hw/core
Michael S. Tsirkin ac41881b48 pc: avoid duplicate names for ROM MRs
Since
commit 04920fc0fa
    loader: store FW CFG ROM files in RAM
RAM MRs including ROM files in FW CFGs are created
and named using the file basename.

This becomes problematic if these names are
supplied by user, since the basename might not
be unique.

There are two cases we care about:
- option-rom flag.
- option ROM for devices. This triggers e.g. when
  using rombar=0.

At the moment we get an assert. E.g
qemu -option-rom /usr/share/ipxe/8086100e.rom -option-rom
/usr/share/ipxe.efi/8086100e.rom
RAMBlock "/rom@genroms/8086100e.rom" already registered, abort!

This is a regression from 1.6.

For now let's keep it simple and just avoid creating the
MRs in case of option ROMs.

when using 1.7 machine types, enable
option ROMs in RAM to match that version.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-03-11 13:25:48 +02:00
..
empty_slot.c empty_slot: QOM cast cleanup 2013-07-29 21:06:37 +02:00
hotplug.c define hotplug interface 2014-02-10 10:23:35 +02:00
irq.c hw/core: Add interface to allocate and free a single IRQ 2013-10-14 17:11:44 +03:00
loader.c pc: avoid duplicate names for ROM MRs 2014-03-11 13:25:48 +02:00
Makefile.objs define hotplug interface 2014-02-10 10:23:35 +02:00
null-machine.c hw: Clean up bogus default boot order 2013-08-28 10:16:47 +03:00
ptimer.c aio / timers: Switch entire codebase to the new timer API 2013-08-22 19:14:24 +02:00
qdev-properties-system.c qdev: Use QAPI type names for properties 2014-02-14 21:12:05 +01:00
qdev-properties.c qdev: Use QAPI type names for properties 2014-02-14 21:12:05 +01:00
qdev.c qdev: Keep global allocation counter per bus 2014-03-05 03:06:47 +01:00
stream.c stream: Remove app argument hack 2013-04-16 10:04:23 +02:00
sysbus.c sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
uboot_image.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00