On Sat, 7 Jan 2012, Gerhard Wiesinger wrote:
On Sat, 7 Jan 2012, Gerhard Wiesinger wrote:
No NIC:
-net none
=> No iPXE ROM (correct).
but with the previously listed config no iPXE ROM should be there. Saw this
is done through paravirtualization from Seabios/QEMU or KVM. So there
must be a bug with the empty romfile options with net or device (I guess)
in QEMU/KVM.
I think I found the bug:
pcnet-pci.c
static int pci_pcnet_init(PCIDevice *pci_dev)
{
...
if (!pci_dev->qdev.hotplugged) {
static int loaded = 0;
if (!loaded) {
rom_add_option("pxe-pcnet.rom", -1);
loaded = 1;
}
}
Option rom is added unconditionally regardless of command line options due to
hot plug feature ...
grep -ir rom_add_option .
./ne2000.c: rom_add_option("pxe-ne2k_pci.rom", -1);
NE2000 also has the same problem.
RTL8139 and all others are done through romfile which are working correct:
./rtl8139.c: .romfile = "pxe-rtl8139.rom",
I finally submitted a patch for fixing the issue:
[PATCH] network: Added option to disable NIC option roms
Ciao,
Gerhard
--
http://www.wiesinger.com/