From: Gerhard Wiesinger <lists@wiesinger.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Kevin O'Connor <kevin@koconnor.net>,
qemu-devel@nongnu.org, Gleb Natapov <gleb@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] network: Added option to disable NIC option roms
Date: Thu, 12 Jan 2012 07:45:29 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.02.1201120741150.28218@bbs.intern> (raw)
In-Reply-To: <4F0AB023.5040705@redhat.com>
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/
next prev parent reply other threads:[~2012-01-12 6:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-08 11:55 [Qemu-devel] [PATCH] network: Added option to disable NIC option roms Gerhard Wiesinger
2012-01-08 16:40 ` Stefan Hajnoczi
2012-01-08 20:56 ` Gerhard Wiesinger
2012-01-09 8:06 ` Stefan Hajnoczi
2012-01-09 9:15 ` Gerd Hoffmann
2012-01-12 6:45 ` Gerhard Wiesinger [this message]
2012-01-12 7:58 ` Gerd Hoffmann
2012-01-25 21:08 ` Gerhard Wiesinger
-- strict thread matches above, loose matches on Subject: below --
2012-01-25 21:01 Gerhard Wiesinger
2012-01-26 7:45 ` Markus Armbruster
2012-01-26 10:45 ` Gerd Hoffmann
2012-01-26 11:00 ` Markus Armbruster
2012-01-27 6:56 ` Gerhard Wiesinger
2012-01-27 16:02 ` Gerhard Wiesinger
2012-02-13 6:23 ` Gerhard Wiesinger
2012-02-16 6:41 ` Gerhard Wiesinger
2012-02-01 22:19 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.02.1201120741150.28218@bbs.intern \
--to=lists@wiesinger.com \
--cc=gleb@redhat.com \
--cc=kevin@koconnor.net \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).