xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>
Cc: Fitzhardinge <jeremy@goop.org>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	"Zhang, Xiantao" <xiantao.zhang@intel.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: Re: IRQs, move_in_progress, -EBUSY &c
Date: Wed, 11 Aug 2010 20:12:57 +0100	[thread overview]
Message-ID: <C888B4C9.446E%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AANLkTim2vEfCkf4+mWu96qcyT-OB-jx7cgCJcPGp+e55@mail.gmail.com>

On 11/08/2010 20:06, "George Dunlap" <George.Dunlap@eu.citrix.com> wrote:

> Looks like there are other callers of __assign_irq_vector() which also
> don't handle the -EBUSY return value, namely
> xen/arch/x86/io_apic.c:set_desc_affinity().

Looks like its callers do the same as on native Linux though -- namely
silently bail on error. I think the set_affinity type callers are pretty
benign if they fail-as-noop. In all of this, where possible I think we just
have to stay close to what Linux does.

 -- Keir

> Unfortunately, set_desc_affinity() cannot simply loop until it stops
> getting -EBUSY, as it is almost always called with irqs disabled -- so
> the very IPI which will call the function to make it not busy anymore
> is blocked.  And it only returns one value (a cpu mask), and the
> function which calls it returns no value at all; so we can's pass the
> "loop and retry" up one more level; we'd have to do a ton more code
> rewriting to be able to handle retries.
> 
> Can we just call the cleanup function directly if we get -EBUSY?

  reply	other threads:[~2010-08-11 19:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11 14:56 IRQs, move_in_progress, -EBUSY &c George Dunlap
2010-08-11 15:04 ` Keir Fraser
2010-08-11 15:38 ` Jeremy Fitzhardinge
2010-08-11 15:59 ` Keir Fraser
2010-08-11 17:49   ` George Dunlap
2010-08-11 18:18     ` Keir Fraser
2010-08-11 19:06       ` George Dunlap
2010-08-11 19:12         ` Keir Fraser [this message]
2010-08-11 19:52           ` George Dunlap
2010-08-11 19:28         ` George Dunlap

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=C888B4C9.446E%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=jeremy@goop.org \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xiantao.zhang@intel.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 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).