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] Re: [PATCH] Paravirt framebuffer backend tools [2/5]

To: "Stephen C. Tweedie" <sct@xxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] Paravirt framebuffer backend tools [2/5]
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 10 Oct 2006 12:46:32 -0500
Cc: Jeremy Katz <katzj@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Anthony Liguori <aliguori@xxxxxxxxxxxxx>, sos22@xxxxxxxxxxxxx, Laurent Vivier <Laurent.Vivier@xxxxxxxx>
Delivery-date: Tue, 10 Oct 2006 10:47:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1160499227.5951.35.camel@xxxxxxxxxxxxxxxxxxxxx>
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>
References: <20060904090150.GC4812@xxxxxxxxx> <44FC224D.3090300@xxxxxxxx> <20060906091505.GD3257@xxxxxxxxx> <44FEB3DE.5070502@xxxxxxxx> <20060906171006.GA5306@xxxxxxxxx> <44FFCAC0.6060809@xxxxxxxx> <20060907083848.GA3078@xxxxxxxxx> <45016F8E.1030300@xxxxxxxxxxxxx> <20060908141248.GA6845@xxxxxxxxx> <45017CCF.9050707@xxxxxxxxxxxxx> <87psd4ul5c.fsf@xxxxxxxxxxxxxxxxx> <1160499227.5951.35.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20060918)
Stephen C. Tweedie wrote:
Hi,

Bear in mind that it may simply not be possible.  :-(

Right, this is my understanding of the problem.

I think the best we can do is use a keymap in the host to translate from whatever keycodes we're getting to PC scancodes and then leave it up to the guest to convert the scancodes based on whatever keymap they're using.

This is what rdesktop and qemu do.

Regards,

Anthony Liguori

An example is my UK keyboard connecting to a guest with a US keymap.
For me, "#" is a key on its own (with "~" as the shift-modified key.)
When I type "#", with no modifier pressed, there is simply no way to
translate that to a single keycode on a US keymap and get the "#" ksym
out --- on a US keyboard, "#" requires shift to be held down.

The only way you'll get such a keypress through is by faking modifiers
on the fly.

--Stephen


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