qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Jes Sorensen <Jes.Sorensen@redhat.com>
Cc: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] Re: [PATCH v3] Do not try loading option ROM for hotplug PCI device in pc-0.11 compat mode
Date: Mon, 30 Aug 2010 08:45:27 -0500	[thread overview]
Message-ID: <4C7BB5F7.6010906@codemonkey.ws> (raw)
In-Reply-To: <4C7BAE1C.2070007@redhat.com>

On 08/30/2010 08:11 AM, Jes Sorensen wrote:
> On 08/30/10 15:00, Anthony Liguori wrote:
>    
>> On 08/30/2010 03:16 AM, Jes.Sorensen@redhat.com wrote:
>>      
>>> From: Jes Sorensen<Jes.Sorensen@redhat.com>
>>>
>>> pc-0.11 and older uses fw_cfg to provide option ROMs. As fw_cfg is setup
>>> at init time, it is not possible to load an option ROM for a hotplug
>>> device when running in compat mode.
>>>
>>> v2: Alex Williamson pointed out that one can get to qdev directly from
>>> pci_dev, so no need to pass it down.
>>>
>>> v3: Braces
>>>
>>>        
>> What's the specific bug?  The devices themselves have a check for
>> hotplug which inhibits rom addition during hotplug so either there's a
>> device missing this check or if we're going to go this route, we ought
>> to remove those checks in the other devices.
>>      
> If you run in -M pc-0.11 or older option ROMs are provided via fw_cfg,
> which means QEMU is unable to load it after boot time if you try to
> hot-plug a new network device via the monitor. Instead it decides to
> exit with an error.
>    

Which network device?

Take a look at ne2k.c's rom loading.  It's got logic for rom loading 
with hotplug but e1000 and rtl8139 don't.  Maybe it's because ne2k also 
supports an ISA mode?

Gerd, what was your intention here?

Regards,

Anthony Liguori

> My patch makes QEMU not try to load the option ROM in this case, which
> IMHO is a reasonable workaround. It means you can't PXE from the
> hot-plugged device, but at least QEMU doesn't exit out on you.
>
> Cheers,
> Jes
>    

  reply	other threads:[~2010-08-30 13:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-30  8:16 [Qemu-devel] [PATCH v3] Do not try loading option ROM for hotplug PCI device in pc-0.11 compat mode Jes.Sorensen
2010-08-30 13:00 ` [Qemu-devel] " Anthony Liguori
2010-08-30 13:11   ` Jes Sorensen
2010-08-30 13:45     ` Anthony Liguori [this message]
2010-08-30 13:57       ` Gerd Hoffmann
2010-08-30 13:59       ` Jes Sorensen
2010-08-30 13:29   ` Markus Armbruster

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=4C7BB5F7.6010906@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=Jes.Sorensen@redhat.com \
    --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).