From: Keir Fraser Subject: Re: [RFC] irq rate limit Date: Wed, 09 Sep 2009 09:48:24 +0100 Message-ID: References: <20090909084825.GA25462@ub-qhe2> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090909084825.GA25462@ub-qhe2> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Qing He , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 09/09/2009 09:48, "Qing He" wrote: > This is a poc patch of guest irq ratelimit. The main motivation is > to ensure Xen's responsiveness during an irq storm, that caused by > improper hardware or drivers. If one interrupt is fired at a high > rate (>10k/10ms in the poc), it is disabled until the next periodic > timer_fn. A global generation counter is used to minimize overhead. What's the generation counter for? Why not just zero desc->rl_cnt in the timer handler? -- Keir