WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Xen attention key

To: Devel Xen <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Xen attention key
From: Bin Ren <br260@xxxxxxxxx>
Date: Mon, 17 Nov 2003 18:13:31 +0000
Delivery-date: Mon, 17 Nov 2003 18:16:01 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Xen internally registers a series of key handlers. When a key is pressed, the corresponding key handler is invoked, which 'printk' (not 'printf' to stdout)
internal statistical information, very useful for debugging.

When you are using a serial line, you directly enter this special mode, i.e.
every key you press results in a key handler invoked (if exists).

When you are using the keyboard under Domain0, you need XEN_ATTENTION_KEY
to use this function, (currently defined to Scroll Lk).

With PC keyboard (without Fn key), just simultaneously press Scroll Lk + key (such as 'p', 'h' etc)

However, with a laptop keyboard with Fn, it's much much more tricky.

Typically, you need press Fn + Num Lk to 'produce' Scroll Lk. At this point, if you move on to press another key (say, press Fn, Num Lk, 'p' all together),
the key_handler is not invoked at all, and your keyboard hangs.

To restore your keyboard, release the previous three keys, and press Fn + Num Lk again.

The reason is: With Fn pressed, the scan code of the key (say 'p') is changed so that it's not
recognized by Xen at all.

The solution is:
1. press Fn + Num Lk
2. release Fn but hold Num Lk
3. press another key ('p', 'h', etc)

Last but not least, as I said at the beginning, Xen internal statistical
information is output via 'printk'. If you are using a serial line, you
could see the output immediately. But if you are under Domain0,
you won't see anything: 'printk' is not directed to 'stdout' on Domain0.
Fortunately, you can use 'xi_read_console_ring' to fetch the
'printk' messages from Xen and print them to 'stdout' on Domain0.
'xi_read_console_ring' only exists in Xeno-unstable.bk tree.

FYI.

-- Bin



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>