All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Jan Beulich <jbeulich@novell.com>, xen-devel@lists.xensource.com
Subject: Re: irq_guest_eoi_timer interaction with MSI
Date: Thu, 13 Nov 2008 11:16:40 +0000	[thread overview]
Message-ID: <C541BD18.2905B%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <491C189C.76E4.0078.0@novell.com>

On 13/11/08 11:07, "Jan Beulich" <jbeulich@novell.com> wrote:

>> Otherwise we could relax it some (e.g., require N IRQs
>> to get stacked up rather than just 1; or add explicit rate limiting).
> 
> For the main problem at hand, that would just reduce the likelihood of the
> device refusing to work. For the performance issue, that would be an
> option, as would be reducing the timeout value. However, I would also
> consider making EVTCHNOP_unmask clear that state, and then perhaps
> find a way to tell the guest that it should call this even if unmask_evtchn()
> finds the event channel to be bound to the local CPU. The obvious thing
> would be to either extend shared_info or have the guest register an
> address with Xen where per-event-channel overflow status would be
> reported by Xen.

We already have PHYSDEVOP_eoi. We can force guests to always use that. It'll
be no slower than level-triggered IO-APIC IRQs, which we've been using since
forever with no complaints. And yeah, as an extension we could have a
shared-memory pirq bitmap to indicate dynamically whether eoi is required.
Quite a secondary concern though, I would say.

>> We only disable MSI when the device does not support masking. Perhaps we
>> should make disable/enable no-ops in that case?
> 
> Yes, but don't we need an alternative way to avoid storms then?

We should be delaying LAPIC EOI, just as we do for level-triggered IO-APIC
IRQs (in that case, because masking RTEs in some cases has stupid side
effects on some damn stupid chipsets). All that logic exists, just needs
plumbing in for this particular class of non-maskable MSI.

 -- Keir

  reply	other threads:[~2008-11-13 11:16 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-13  9:22 irq_guest_eoi_timer interaction with MSI Jan Beulich
2008-11-13  9:42 ` Keir Fraser
2008-11-13 11:07   ` Jan Beulich
2008-11-13 11:16     ` Keir Fraser [this message]
2008-11-13 11:22       ` Keir Fraser
2008-11-13 14:53       ` Jan Beulich
2008-11-13 15:06         ` Keir Fraser
2008-11-13 15:28           ` Jan Beulich
2008-11-13 16:21             ` Keir Fraser
2008-11-13 16:22               ` Keir Fraser
2008-11-13 16:43                 ` Jan Beulich
2008-11-13 16:50                   ` Keir Fraser
2008-11-14  9:28                     ` Jan Beulich
2008-11-14  9:42                       ` Keir Fraser
2008-11-14 13:00                         ` Jan Beulich
2008-11-24 16:34                         ` Jan Beulich
2008-11-24 17:02                           ` Keir Fraser
2008-11-25  8:15                             ` Jan Beulich
2008-11-25  8:30                               ` Keir Fraser
2008-11-25  8:40                                 ` Jan Beulich
2008-11-25  8:44                                   ` Keir Fraser
2008-11-25  8:52                                     ` Jan Beulich
2008-11-25  9:38                                       ` Keir Fraser
2008-11-25 10:12                             ` Jan Beulich
2008-11-25 10:47                               ` Keir Fraser

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=C541BD18.2905B%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=jbeulich@novell.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.