Skip to contentSkip to conversation

x86: show pagetable walk if guest cannot handle page fault

PATCH New Jan Beulich 1 participant 1 message Sep 21, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: show pagetable walk if guest cannot handle page fault

This turned out to be a useful debugging aid when a guest (especially dom0) dies early during boot due to a page fault.

xen/arch/x86/traps.c +2 -0
Index: 2006-09-11/xen/arch/x86/traps.c
===================================================================
@@ -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;
 }