From: "Jan Beulich" Subject: Re: x86: adjust handling of interrupts coming in via legacy vectors Date: Tue, 15 May 2012 09:22:37 +0100 Message-ID: <4FB22E6D0200007800083ACF@nat28.tlf.novell.com> References: <4FB1473102000078000838A6@nat28.tlf.novell.com> <4FB2173C0200007800083A5D@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: andrew.cooper3@citrix.com, AP , Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 15.05.12 at 10:03, AP wrote: > On Mon, May 14, 2012 at 11:43 PM, Jan Beulich wrote: >> >> >>> On 14.05.12 at 18:24, Keir Fraser wrote: >> > On 14/05/2012 16:56, "Jan Beulich" wrote: >> > >> >>> Looks sensible, and I suppose good to have for 4.2. >> >>> >> >>> Acked-by: Keir Fraser >> >> >> >> 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