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

Re: [Xen-devel] Re: [PATCH][RFC] Change edge-interrupt handling in Xen

To: "Keir Fraser" <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [PATCH][RFC] Change edge-interrupt handling in Xen
From: "Haitao Shan" <maillists.shan@xxxxxxxxx>
Date: Thu, 10 Apr 2008 19:58:09 +0800
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, "Shan, Haitao" <haitao.shan@xxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 10 Apr 2008 04:58:36 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=28ziKxcH5m5N0rWG++8huznG1k+Bt0W1eFe7N9EH2G8=; b=FJ0AeHWgrSyqf1Nw0RYKS5QvBWh30ttBlg3vgXtvpC+e7Iba9FJSYDEbnzIdMTeyBgNIgZhgCzKU3R2yvEPqCVsmSicTbJ3MVRhB/P2JPENp/E2A8oJ+dlaGsczKo4LsDX1cWKP1GN8yywiNPRGn0M8w5BFre7jAKCb1hiQhmPA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=jYCVNe0syySDtpko3fJtkiLRd+l0LHYaIK0VdfJwlRcDdfWMGixsjoUgsSH/ZiGLdeHxYPIScIy/PYzE2obZqkh4XF+RY+OSjeseLsyR62qNRHFGFUViDJPmmbmxTOZ7ae0Yo7VYovlSixTK4do/nnHmEFCJ3FXYYqkQ38UjPgg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C423A8E0.1EFD1%keir.fraser@xxxxxxxxxxxxx>
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: <823A93EED437D048963A3697DB0E35DE01427E5F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C423A8E0.1EFD1%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks! I will follow the timer approach.

Best Regards
Shan Haitao

2008/4/10, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>:
On 10/4/08 10:45, "Shan, Haitao" <haitao.shan@xxxxxxxxx> wrote:

We solve the problem in this way:
Move pirq_needs_eoi from dom0's owe memory to share page.
Xen will chage the bit in pirq_needs_eoi dynamically.
Xen uses pending status to judge whether the first one is handled.
On receiving EOI hypercall from guest, unmask the interrupt.

Do you think this approach is viable?

It breaks the existing guest interface and I think it's probably unnecessary. Unmask the interrupt on a one-millisecond timer. That suitably limits interrupt storms and should guarantee the system makes progress. If we are taking this path very often then we have a very odd system. Perhaps log something via printk() if we take the path frequently (for some arbitrary definition of 'frequently')?

Remember that right now we have no storm handling for edge-triggered interrupts and we have no problems so far. The only problem we've ever seen is with MSI and an e1000 NIC, at start of day only, and even that can't be repro'ed reliably.

 -- Keir

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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>