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

[Xen-changelog] [xen-unstable] The Xen console intercepts ^O and prevents it from propagating



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1173697474 0
# Node ID f9fbcc354daaa0bf8d19fa90a29f5de8f920c95f
# Parent  94fcbb52bde24322a5998fa22a0786dd697f40b1
The Xen console intercepts ^O and prevents it from propagating
through to the guest.  However, ^O is a useful key in bash and in
Emacs.  This patch changes the console to pass a single ^O
through to the guest when it is pressed twice.

Signed-off-by: Ben Pfaff <blp@xxxxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/console/console.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -r 94fcbb52bde2 -r f9fbcc354daa 
linux-2.6-xen-sparse/drivers/xen/console/console.c
--- a/linux-2.6-xen-sparse/drivers/xen/console/console.c        Mon Mar 12 
11:03:07 2007 +0000
+++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c        Mon Mar 12 
11:04:34 2007 +0000
@@ -348,8 +348,11 @@ void xencons_rx(char *buf, unsigned len,
 #ifdef CONFIG_MAGIC_SYSRQ
                if (sysrq_enabled) {
                        if (buf[i] == '\x0f') { /* ^O */
-                               sysrq_requested = jiffies;
-                               continue; /* don't print the sysrq key */
+                               if (!sysrq_requested) {
+                                       sysrq_requested = jiffies;
+                                       continue; /* don't print sysrq key */
+                               }
+                               sysrq_requested = 0;
                        } else if (sysrq_requested) {
                                unsigned long sysrq_timeout =
                                        sysrq_requested + HZ*2;

_______________________________________________
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®.