From: "Jan Beulich" Subject: Re: [PATCH] x86/watchdog: Use real timestamps for watchdog timeout Date: Fri, 24 May 2013 12:36:22 +0100 Message-ID: <519F6CD602000078000D8BE5@nat28.tlf.novell.com> References: <20130524093712.GA54769@ocelot.phlegethon.org> <519F3AED.2090209@citrix.com> <519F2E5D02000078000D8AA7@nat28.tlf.novell.com> <519F3994.7040008@citrix.com><519F3AED.2090209@citrix.com> <519F3994.7040008@citrix.com> <20130524101312.GB54769@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130524101312.GB54769@ocelot.phlegethon.org> 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 Cooper , Tim Deegan Cc: "Keir (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 24.05.13 at 12:13, Tim Deegan wrote: >> > Handling this case it nice, but I wonder whether this patch ought to >> > detect and report ludicrous NMI rates rather than silently ignoring >> > them. I guess that's hard to do in an NMI handler, other than by >> > adjusting the printk when we crash. > > Actually on second thoughts it's easier: as well as having this patch > (or near equivalent) to avoid premature watchdog expiry, we cna detect > the NMI rate in, say, the timer softirq and report if it's gone mad. I may not get how you imagine this to work, but why would you assume the timer softirq gets any chance to run anymore with an absurd NMI rate (or at least get run enough times to prevent the watchdog to fire)? Jan