Skip to contentSkip to conversation

show-regs.patch

PATCH New Arun Sharma 1 participant 1 message May 27, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 show-regs.patch

[ I know this will break non x86 archs, but something like this would be nice
to figure out why a domain has crashed. May be we can #ifdef CONFIG_X86 for now? ]

Show registers after a domain crash

xen/common/domain.c +1 -0
@@ -127,6 +127,7 @@
         panic("Domain 0 crashed!\n");
     }
 
+    show_registers(guest_cpu_user_regs());
     set_bit(_DOMF_crashed, &d->domain_flags);
 
     send_guest_virq(dom0->exec_domain[0], VIRQ_DOM_EXC);