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>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Jeremy Fitzhardinge <jeremy@goop.org>,
	Konrad Rzeszutek Wilk <konrad.wilk>
Subject: Re: IRQs, move_in_progress, -EBUSY &c
Date: Wed, 11 Aug 2010 16:59:32 +0100	[thread overview]
Message-ID: <C8888776.1D6E2%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <AANLkTin2Q9pH+v=Nm=T-R_sgajrdxKy5nj+_5Ja+Wb6Y@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 463 bytes --]

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


[-- Attachment #2: 00-gsi-retry --]
[-- Type: application/octet-stream, Size: 526 bytes --]

diff -r f45026ec8db5 xen/arch/x86/physdev.c
--- a/xen/arch/x86/physdev.c	Mon Aug 09 18:29:50 2010 +0100
+++ b/xen/arch/x86/physdev.c	Wed Aug 11 16:58:14 2010 +0100
@@ -478,6 +478,9 @@
             break;
         ret = mp_register_gsi(setup_gsi.gsi, setup_gsi.triggering,
                               setup_gsi.polarity);
+        if ( ret == -EBUSY ) /* IRQ is being moved */
+            ret = hypercall_create_continuation(
+                __HYPERVISOR_physdev_op, "ih", cmd, arg);
         break; 
     }
     default:

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2010-08-11 15:59 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 [this message]
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
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=C8888776.1D6E2%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=jeremy@goop.org \
    --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 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).