From: Keir Fraser Subject: Re: [PATCH] reduce useless output from 'd' consolecommand Date: Thu, 12 Jun 2008 16:54:15 +0100 Message-ID: References: <485161F0.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <485161F0.76E4.0078.0@novell.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: Jan Beulich , xen-devel@lists.xensource.com Cc: xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/6/08 16:50, "Jan Beulich" wrote: >>>> Keir Fraser 12.06.08 17:31 >>> >> I quite like it as it is. The output for a CPU in guest mode is quite short, >> and outputting printk("CPU%d blah") before doing the IPI also lets us see >> very clearly if a CPU is probably not responding to IPI. I think changing >> console_start_log_everything() to console_start_sync() would be a good idea, >> at least for key 'd'. > > The part about placement of the printk() is certainly reasonable, but > the guest mode output being short I have to question - its stack trace > can be as long as the hypervisor's. And clearly printing hypervisor > context when guest execution was interrupted is pointless. I added console_start/end_sync() to the key handler, so that at least reduces this from an issue resulting in annoying loss of critical debug data down to a minor quibble. And now you're *guaranteed* not to lose any debug data (so long as all CPUs are alive) which is even better than thinning down the output and hoping for the best. -- Keir