All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "Keir (Xen.org)" <keir@xen.org>, xen-devel <xen-devel@lists.xen.org>
Subject: Re: x86: adjust handling of interrupts coming in via legacy vectors
Date: Tue, 15 May 2012 09:52:35 +0100	[thread overview]
Message-ID: <4FB21953.40004@citrix.com> (raw)
In-Reply-To: <4FB22E6D0200007800083ACF@nat28.tlf.novell.com>

On 15/05/12 09:22, Jan Beulich wrote:
>>>> On 15.05.12 at 10:03, AP <apxeng@gmail.com> wrote:
>> On Mon, May 14, 2012 at 11:43 PM, Jan Beulich <JBeulich@suse.com> wrote:
>>>>>> On 14.05.12 at 18:24, Keir Fraser <keir@xen.org> wrote:
>>>> On 14/05/2012 16:56, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>>
>>>>>> Looks sensible, and I suppose good to have for 4.2.
>>>>>>
>>>>>> Acked-by: Keir Fraser <keir@xen.org>
>>>>> Please take a look at the v2 I just sent, to accommodate a suggestion
>>>>> from Andrew Cooper.
>>>> I think it's very paranoid, since legacy vectors never get programmed
>>>> into
>>>> an IOAPIC RTE and should never need EOIing at the local APIC. But you do
>>>> at
>>>> least printk the case that we see the ISR bit set, and you printk the
>>>> vector
>>>> number, so really this v2 patch gives us more information about this
>>>> bogus
>>>> situation than v1 did, so it's a slight improvement overall. So you
>>>> still
>>>> have my Ack.
>>> It indeed is paranoid (which is why I didn't do so in v1), but Andrew
>>> certainly has a point in saying that something so far unexplainable
>>> going on makes it desirable to cover as many (however remotely)
>>> potential causes as possible. (I still consider double delivery through
>>> IO-APIC and PIC the most likely scenario, despite not having a
>>> reasonably explanation on how the PIC mask bit could get cleared.)
>>>
>>> Once we hopefully understand the hole situation, the code here
>>> should likely be reverted to the v1 version (along with removing the
>>> other debugging code).
>> Once this patch goes in, do I need to still run with the patch Andrew
>> provided in http://lists.xen.org/archives/html/xen-devel/2012-05/msg00332.html 
>> for the debugging code?
> Yes, that change is still going to be necessary. Probably worth
> committing too (perhaps with its second hunk annotated with a
> comment), which I believe didn't happen because it wasn't really
> submitted for that purpose. Andrew, Keir?
>
> Or would we be better off simply allowing xfree(NULL) in IRQ
> context, by swapping the in_irq() and NULL checks in the
> function)? I'd favor this, despite the small risk of it hiding
> latent bugs.
>
> Jan

The patch should probably be committed in the same vein as the other
debugging patches

-- 
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com

      reply	other threads:[~2012-05-15  8:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-14 12:39 x86: adjust handling of interrupts coming in via legacy vectors Jan Beulich
2012-05-14 12:55 ` [PATCH] " Jan Beulich
2012-05-14 13:33   ` Andrew Cooper
2012-05-14 14:28     ` Jan Beulich
2012-05-14 14:38       ` Andrew Cooper
2012-05-14 15:39         ` Jan Beulich
2012-05-14 15:35 ` Keir Fraser
2012-05-14 15:56   ` Jan Beulich
2012-05-14 16:24     ` Keir Fraser
2012-05-15  6:43       ` Jan Beulich
2012-05-15  8:03         ` AP
2012-05-15  8:22           ` Jan Beulich
2012-05-15  8:52             ` Andrew Cooper [this message]

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=4FB21953.40004@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=keir@xen.org \
    --cc=xen-devel@lists.xen.org \
    /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.