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>,
	Jeremy, "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 19:18:41 +0100	[thread overview]
Message-ID: <C888A811.1D715%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AANLkTikXxQFyA95yb7mPV9ppQ_8Xj7oThCww-e2xy2HN@mail.gmail.com>

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

> Seems to work about 50/50.
> 
> Attached is a log of a successful boot (exile.008.log), and a failed
> boot (exile.009.log).  Suspicious things about the failed case:  the
> usb code starts to initialize before the SATA code finishes
> initializing, and complains that "Controller is probably using the
> wrong IRQ".

Cc'ing Xiantao Zhang, who submitted the per-CPU IDT patches. Perhaps he has
some ideas how to fix this. The only other simple thing I can think to try
is to modify my patch so that it loops in the hypervisor. Something like:
 do{ ret = mp_register_gsi(...}; } while (ret == -EBUSY);
Since the condition being EBUSYed on is cleared in hardirq context, that
should be safe.

Apart from that, it is possible that greater surgery is neede don the
per-CPU IDT and IRQ migration logic, and I think we need Xiantao's help for
that.

 -- Keir

> Keir: the machine in question (as you may have guessed) is exile; let
> me know if you want to grab it and use it directly.
> 
>  -George
> 
> On Wed, Aug 11, 2010 at 4:59 PM, Keir Fraser <keir.fraser@eu.citrix.com>
> wrote:
>> On 11/08/2010 15:56, "George Dunlap" <George.Dunlap@eu.citrix.com> wrote:
>> 
>>> However, it seems that moving IRQs is not handled properly.  Either
>>> the pvops kernel should retry if it gets an -EBUSY, or the hypercall
>>> should not fail, but wait until it can return success.
>> 
>> Can you try the attached patch?
>> 
>>  Thanks,
>>  Keir
>> 
>>> I discovered all this by adding debug statements to the IRQ path; the
>>> patch is attached, if anyone else wants to use it.
>>> 
>>>  -George
>> 
>> 
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>> 
>> 

  reply	other threads:[~2010-08-11 18:18 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 [this message]
2010-08-11 19:06       ` George Dunlap
2010-08-11 19:12         ` Keir Fraser
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=C888A811.1D715%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).