QEMU has multiple mechanisms for passing configuration information into SeaBIOS: cmos, fw_cfg ports, and fw_cfg "files". The preferred mechanism is the "file" interface which is internally accessed via a "romfile" interface.
It's annoying to have to switch between the different interfaces. So, this patch series converts all the older fw_cfg ports (and some cmos info) to use romfile as well.
I've lightly tested this series. I've also pushed it for testing to: https://github.com/KevinOConnor/seabios/branches/test-fwcfg-20130209
-Kevin
Kevin O'Connor (8): Support skipping content when reading from QEMU fw_cfg romfile entries. Convert fw_cfg ACPI entries into romfile entries. Convert fw_cfg SMBIOS entries into romfile entries. Convert basic integer fw_cfg entries into romfile entries. Convert fw_cfg NUMA entries into a romfile entry. Process fw_cfg e820 entries during the fw_cfg setup stage. Integrate qemu_cfg_preinit() into qemu_romfile_init(). Convert some QEMU cmos config variables to the romfile interface.
src/acpi.c | 50 ++++--- src/ata.c | 1 - src/boot.c | 2 +- src/clock.c | 5 +- src/cmos.h | 12 +- src/coreboot.c | 1 - src/floppy.c | 21 +-- src/mptable.c | 3 +- src/paravirt.c | 429 +++++++++++++++++++-------------------------------------- src/paravirt.h | 18 +-- src/post.c | 3 +- src/romfile.c | 1 + src/smbios.c | 119 +++++++++++----- src/smp.c | 3 +- 14 files changed, 272 insertions(+), 396 deletions(-)