WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] x86: show pagetable walk if guest cannot handle page

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] x86: show pagetable walk if guest cannot handle page fault
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Thu, 21 Sep 2006 17:42:31 +0200
Delivery-date: Thu, 21 Sep 2006 08:42:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 <jbeulich@xxxxxxxxxx>

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;
 }


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86: show pagetable walk if guest cannot handle page fault, Jan Beulich <=