]> xenbits.xensource.com Git - libvirt.git/commit
qemu: add "romfile" support to specify device boot ROM
authorLaine Stump <laine@laine.org>
Wed, 25 Jan 2012 16:20:49 +0000 (11:20 -0500)
committerLaine Stump <laine@laine.org>
Mon, 30 Jan 2012 17:30:35 +0000 (12:30 -0500)
commit3801831cdf64cb040047b579d02942fe34ff31b5
treeac79e1863f398377b6d2ecdb4f38d11846349f63
parent3284ac046fedc5b21c2bd153aa0f621a19a52e96
qemu: add "romfile" support to specify device boot ROM

This patch addresses: https://bugzilla.redhat.com/show_bug.cgi?id=781562

Along with the "rombar" option that controls whether or not a boot rom
is made visible to the guest, qemu also has a "romfile" option that
allows specifying a binary file to present as the ROM BIOS of any
emulated or passthrough PCI device. This patch adds support for
specifying romfile to both passthrough PCI devices, and emulated
network devices that attach to the guest's PCI bus (just about
everything other than ne2k_isa).

One example of the usefulness of this option is described in the
bugzilla report: 82576 sriov network adapters don't provide a ROM BIOS
for the cards virtual functions (VF), but an image of such a ROM is
available, and with this ROM visible to the guest, it can PXE boot.

In libvirt's xml, the new option is configured like this:

   <hostdev>
     ...
     <rom file='/etc/fake/boot.bin'/>
     ...
   </hostdev

(similarly for <interface>).
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-pci-rom.args
tests/qemuxml2argvdata/qemuxml2argv-pci-rom.xml