[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] keyhandler: When dumping all-CPU register state, wnter console sync



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213284865 -3600
# Node ID ec56331c056aea79b267ae5383a5ae09f4a37941
# Parent  4ac0898df538c74cab88aaeccc3b62f1e88037f3
keyhandler: When dumping all-CPU register state, wnter console sync
mode so we do not drop any critical debug data.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/common/keyhandler.c |    5 +++++
 1 files changed, 5 insertions(+)

diff -r 4ac0898df538 -r ec56331c056a xen/common/keyhandler.c
--- a/xen/common/keyhandler.c   Thu Jun 12 16:18:31 2008 +0100
+++ b/xen/common/keyhandler.c   Thu Jun 12 16:34:25 2008 +0100
@@ -105,6 +105,9 @@ static void dump_registers(unsigned char
 {
     unsigned int cpu;
 
+    /* We want to get everything out that we possibly can. */
+    console_start_sync();
+
     printk("'%c' pressed -> dumping registers\n", key);
 
     /* Get local execution state out immediately, in case we get stuck. */
@@ -120,6 +123,8 @@ static void dump_registers(unsigned char
     }
 
     printk("\n");
+
+    console_end_sync();
 }
 
 static void halt_machine(unsigned char key, struct cpu_user_regs *regs)

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.