Hi,
We could also add a "romfile" property to the pci bus and do everything (except setting the default filename) in generic pci code.
Patch attached (incremental to yours).
I'm more worried about the CONFIG_OPTIONROMS_DEPLOYED patches for seabios, although I don't fully understand what they are doing. There are non-pci option roms (linuxboot, multiboot, extboot) which qemu will continue to deploy the way roms are deployed today.
-kernel didn't work on a quick test. cheers, Gerd