WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH][FIX] Possible fix for spurious interrupts

To: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH][FIX] Possible fix for spurious interrupts
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 14 Apr 2006 19:42:18 +0100
Cc: vo.sinh@xxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 14 Apr 2006 11:42:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <443FED290200007800015D75@xxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <443FED290200007800015D75@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 14 Apr 2006, at 18:42, Jan Beulich wrote:

This looks questionable to me (even after your follow-up mails). You are, in this mode, ack-ing the interrupt before the handler even gets invoked. I would expect level triggered interrupts to fire again right away then if you don't manage to run the handling domain before re-enabling interrupts. Of course, I haven't seen your later attempts at fixing the
problem, but am I missing something here?

Yes, I ack *after* the handlers have executed. The ack is in the ->end handler.

This is dodgy too on Xen unfortunately. All lower priority interrupts are blocked until the driver domain sees fit to tell Xen it's finished ISR processing. But if a large proportion of x86 hardware is screwed with respect to IO-APIC masking then we have no choice but to get this scheme to work. I look forward to the day when MSI is ubiquitous.

 -- Keir


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