From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjrR6-0006qU-U6 for qemu-devel@nongnu.org; Sun, 08 Jan 2012 07:01:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjrR5-00033v-O8 for qemu-devel@nongnu.org; Sun, 08 Jan 2012 07:01:16 -0500 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:50919 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjrR5-00033j-EU for qemu-devel@nongnu.org; Sun, 08 Jan 2012 07:01:15 -0500 Date: Sun, 8 Jan 2012 12:59:13 +0100 (CET) From: Gerhard Wiesinger In-Reply-To: Message-ID: References: <4F055827.50202@redhat.com> <20120105083239.GR2072@redhat.com> <20120105092037.GA31206@redhat.com> <20120106020539.GB25140@morn.localdomain> <20120107162035.GA8762@morn.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Qemu-devel] Boot order problem and disable iPXE/gPXE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin O'Connor , Gerd Hoffmann , Gleb Natapov 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/