| To: | xen-devel@xxxxxxxxxxxxxxxxxxx |
|---|---|
| Subject: | [Xen-devel] allow ^O through console when doubled |
| From: | Ben Pfaff <blp@xxxxxxxxxxxxxxx> |
| Date: | 2007年3月10日 11:09:55 -0800 |
| Cancel-lock: | sha1:TO8W7z1x+kv5zK8c4M9pkw2aoTI= |
| Delivery-date: | 2007年3月10日 11:19:18 -0800 |
| 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> |
| Reply-to: | blp@xxxxxxxxxxxxxxx |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
| User-agent: | Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
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>
diff -r 6e03c621b579 -r b377228321f6
linux-2.6-xen-sparse/drivers/xen/console/console.c
--- a/linux-2.6-xen-sparse/drivers/xen/console/console.c Tue Mar 06
15:40:06 2007 -0800
+++ b/linux-2.6-xen-sparse/drivers/xen/console/console.c Thu Mar 08
14:26:26 2007 -0800
@@ -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 the sysrq key
*/
+ }
+ sysrq_requested = 0;
} else if (sysrq_requested) {
unsigned long sysrq_timeout =
sysrq_requested + HZ*2;
--
Ben Pfaff
blp@xxxxxxxxxxxxxxx
http://benpfaff.org
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Xen-devel] question about the guestOS boot , Mark Williamson |
|---|---|
| Next by Date: | Re: [Xen-devel] USB (virtualiation?) in PV and HVM , Mark Williamson |
| Previous by Thread: | [Xen-devel] Why is the credit scheduler better than SEDF , Ming Chang |
| Next by Thread: | [Xen-devel] Xen Summit #4, Yorktown NY, April 17-18 , Ian Pratt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |