From: "Jan Beulich" <JBeulich@novell.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>,
Bruce Edge <bruce.edge@gmail.com>
Cc: Xen-devel <xen-devel@lists.xensource.com>
Subject: Re: domU and dom0 hung with Xen console interrupt binding showing in-flight=1, (---M)
Date: Wed, 18 Aug 2010 09:47:36 +0100 [thread overview]
Message-ID: <4C6BBA480200007800010949@vpn.id2.novell.com> (raw)
In-Reply-To: <C8908CF3.1E2E0%keir.fraser@eu.citrix.com>
>>> On 17.08.10 at 20:01, Keir Fraser <keir.fraser@eu.citrix.com> wrote:
> On 17/08/2010 18:28, "Bruce Edge" <bruce.edge@gmail.com> wrote:
>
>> On Tue, Jun 29, 2010 at 1:42 AM, Jan Beulich <JBeulich@novell.com> wrote:
>>>>>> On 28.06.10 at 20:22, Dante Cinco <dantecinco@gmail.com> wrote:
>>>> I have an HP Proliant DL380-G6 (dual Xeon E5540 @ 2.53GHz) with Xen 4.0.0
>>>> and dom0 Linux 2.6.32.12 x86_64 pvops and domU Linux kernel 2.6.30.1 x86_64.
>>>> I'm using PCI passthrough (pci-stub) to pass my 4-port 8Gb PMC-Sierra Fibre
>>>> Channel HBA to domU. After running I/Os for several hours, both dom0 and
>>>> domU hangs and the Xen console shows the interrupt binding below where IRQ
>>>> 66 shows in-flight=1 and mask set (---M). What's the best way to debug this
>>>> problem?
>>>
>>> There are potentially two problems here: One is that the guest may
>>> fail to send the EOI notification. You would want to check whether
>>> pirq_guest_eoi() got run after that last occurrence of the interrupt.
>>>
>>> The more worrying part is that Xen should time out on a guest failing
>>> to send the EOI notification, and ack the interrupt nevertheless.
>>> Looking at the code I fail to see how the ack_APIC_irq() would get
>>> sent in this case: non-maskable MSIs get this issued from
>>> end_msi_irq(), but ->end doesn't get invoked from
>>> irq_guest_eoi_timer_fn() (only ->enable does). Keir, am I missing
>>> something?
>
> I don't think that timer logic is designed to handle non-maskable MSIs, only
> maskable ones. It ought to be not too hard to fix it up for non-maskable
> ones too by issuing the ->end() call from the timer handler?
Yes, that was what I was trying to hint at, but I wasn't sure whether
calling ->end() here has any unintended side effects and/or requires
any extra care (like preventing a subsequent guest initiated EOI to
call ->end() again).
While looking at this I came across another thing I don't understand:
__pirq_guest_eoi(), for the ACKTYPE_EOI case, calls __set_eoi_ready()
in a cpu_test_and_clear() conditional, but __set_eoi_ready() bails
out if it finds !cpu_test_and_clear() on the same bitmap - what's the
point of calling __set_eoi_ready() here then (or what am I missing)?
Jan
next prev parent reply other threads:[~2010-08-18 8:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-28 18:22 domU and dom0 hung with Xen console interrupt binding showing in-flight=1, (---M) Dante Cinco
2010-06-29 8:42 ` Jan Beulich
2010-08-17 17:28 ` Bruce Edge
2010-08-17 18:01 ` Keir Fraser
2010-08-18 8:47 ` Jan Beulich [this message]
2010-08-18 9:40 ` Keir Fraser
2010-08-19 13:42 ` Bruce Edge
2010-08-19 15:48 ` Keir Fraser
2010-08-20 23:25 ` Bruce Edge
2010-08-21 6:02 ` 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=4C6BBA480200007800010949@vpn.id2.novell.com \
--to=jbeulich@novell.com \
--cc=bruce.edge@gmail.com \
--cc=keir.fraser@eu.citrix.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 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).