From: Keir Fraser Subject: Re: Diagnose stuff Date: Thu, 26 Mar 2009 07:14:53 +0000 Message-ID: References: <49C9EA48.2080907@fujitsu-siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49C9EA48.2080907@fujitsu-siemens.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Juergen Gross , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 25/03/2009 08:24, "Juergen Gross" wrote: > while implementing cpupool support in XEN I had to track down some issues > with deadlocks. Is there any interest in patches for the following? > > - compile time switchable spinlock timeout detection NMI watchdog support effectively gets us this, and more general deadlock detection. Just put 'watchdog' on Xen's command line. > - printout of state of ALL cpus to console in case of hypervisor crash Not sure how useful this would be really for most crashes. Probably we don't want it. > - some enhancements in lock handling to reduce (potential) latency: > Today in *lock_irq and *lock_irqsave interrupts are disabled and then > spinning is started. If the lock is not obtained, enabling and disabling of > IRQs in the spinloop would block IRQs as short as possible. Could do. I don't think our IRQ locks are very contended, but equally I suppose the patch is only a few lines. -- Keir