From: "Jan Beulich" Subject: [PATCH] x86: show pagetable walk if guest cannot handle page fault Date: Thu, 21 Sep 2006 17:42:31 +0200 Message-ID: <4512CF07.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This turned out to be a useful debugging aid when a guest (especially dom0) dies early during boot due to a page fault. Signed-off-by: Jan Beulich Index: 2006-09-11/xen/arch/x86/traps.c =================================================================== --- 2006-09-11.orig/xen/arch/x86/traps.c 2006-09-20 15:52:41.000000000 +0200 +++ 2006-09-11/xen/arch/x86/traps.c 2006-09-20 15:53:06.000000000 +0200 @@ -694,6 +694,8 @@ void propagate_page_fault(unsigned long tb->error_code = error_code; tb->cs = ti->cs; tb->eip = ti->address; + if ( !tb->eip ) + show_page_walk(addr); if ( TI_GET_IF(ti) ) tb->flags |= TBF_INTERRUPT; }