qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] network: Added option to disable NIC option rom


From: Gerhard Wiesinger
Subject: Re: [Qemu-devel] [PATCH] network: Added option to disable NIC option roms
Date: Thu, 12 Jan 2012 07:45:29 +0100 (CET)
User-agent: Alpine 2.02 (LFD 1266 2009-07-14)

On Mon, 9 Jan 2012, Gerd Hoffmann wrote:

 Hi,

     if (!pci_dev->qdev.hotplugged) {
         static int loaded = 0;
-        if (!loaded) {
+        if (!loaded &&
pci_has_not_explicitly_disabled_option_romfile(pci_dev)) {
             rom_add_option("pxe-ne2k_pci.rom", -1);
             loaded = 1;
         }

I think you can just remove this altogether and add a .romfile = "..."
entry instead like it is done for the other nics.

I'm not sure about the consequences (hotplugging feature, etc.) when changing it to romfile as in other PCI devices. Also the patch is more generic and supports static and dynamic devices (hotplugable and possible future devices). Patch supports without hotplugging both options to disable the romfile:
,romfile=
,romfile=disabled

And the patch has already been tested ...

Therefore I suggest to commit it and maybe make a refactoring without hotplugging later on.

Ciao,
Gerhard

--
http://www.wiesinger.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]