All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Han, Weidong" <weidong.han@intel.com>
Cc: "'xen-devel@lists.xensource.com'" <xen-devel@lists.xensource.com>,
	"'keir.fraser@eu.citrix.com'" <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH][RFC] pv-ops: fix shared irq device passthrough
Date: Fri, 30 Oct 2009 14:34:49 -0700	[thread overview]
Message-ID: <4AEB5BF9.20307@goop.org> (raw)
In-Reply-To: <715D42877B251141A38726ABF5CABF2C0550A02DAD@pdsmsx503.ccr.corp.intel.com>

On 10/30/09 02:29, Han, Weidong wrote:
> All devices will call probing_irq in startup_pirq, which bind pirq to event channel. But now probing_irq always returns false, then all pirqs are not shareable. In my system, a PCI NIC, an USB controller and an IDE interface device share the same IRQ 18. Because above reason, pirq 18 is set not shareable. So when I hide the PCI NIC, and assign it to guest, it fails in guest_bind_pirq, therefore the PCI NIC in guest cannot work, even impact the devices who share the IRQ 18.
>
> If don't want to change __setup_irq code like my patch does, current probing_irq is useless (always return false). The problem is there is almost no information in desc can be used in probing_irq if desc->action is NULL. Keir, do you have any ideas?
>   

I think the intent of probing_irq is to detect irqs which are being used
to probe for an interrupt during driver initialization.  This should
only be used for things like ISA which don't have any way to explicitly
find out what irq a device is attached to.

Given that ISA devices aren't very interesting and no driver should need
to do that kind of probing under Xen, I wonder if we can't just remove
the whole test?

    J

  reply	other threads:[~2009-10-30 21:34 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 11:39 [PATCH][RFC] pv-ops: fix shared irq device passthrough Han, Weidong
2009-10-26 20:27 ` Jeremy Fitzhardinge
2009-10-27  1:32   ` Han, Weidong
2009-10-29 22:56     ` Jeremy Fitzhardinge
2009-10-30  9:29       ` Han, Weidong
2009-10-30 21:34         ` Jeremy Fitzhardinge [this message]
2009-10-31 13:50           ` Han, Weidong
     [not found]           ` <715D42877B251141A38726ABF5CABF2C055064A406@pdsmsx503.ccr.corp.intel.com>
2009-11-02 10:12             ` Han, Weidong
2009-11-10  6:12               ` Han, Weidong
2009-11-10  6:30                 ` Mr. Teo En Ming (Zhang Enming)
2009-11-10  6:59                   ` Han, Weidong
2009-11-10 16:30                 ` Konrad Rzeszutek Wilk
2009-11-10 17:11                   ` Kay, Allen M
2009-11-10 18:40                     ` Konrad Rzeszutek Wilk
2009-11-10 18:44                   ` Jeremy Fitzhardinge
2009-11-12  7:15                     ` Han, Weidong
2009-11-10 17:56                 ` Jeremy Fitzhardinge

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=4AEB5BF9.20307@goop.org \
    --to=jeremy@goop.org \
    --cc=keir.fraser@eu.citrix.com \
    --cc=weidong.han@intel.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.