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

Re: [Xen-devel] [PATCH] Configurable keyboard mapping for HVM

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] Configurable keyboard mapping for HVM
From: Guillaume Rousse <Guillaume.Rousse@xxxxxxxx>
Date: Mon, 18 Dec 2006 13:10:06 +0100
Delivery-date: Mon, 18 Dec 2006 04:08:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1AC2B70.63DF%keir@xxxxxxxxxxxxx>
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: <C1AC2B70.63DF%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.8 (X11/20061109)
Keir Fraser wrote:
> What happens here if 'keyboard' is undefined in the s-expression?
Good point. This updated patch uses 'en-us' as default.

Signed-off-by: Guillaume Rousse <Guillaume.Rousse@xxxxxxxx>
diff -Naur xen-3.0.3_0-src/tools/python/xen/xend/image.py 
xen-3.0.3_0-src.allow_keyboard_mapping/tools/python/xen/xend/image.py
--- xen-3.0.3_0-src/tools/python/xen/xend/image.py      2006-10-15 
14:22:03.000000000 +0200
+++ xen-3.0.3_0-src.allow_keyboard_mapping/tools/python/xen/xend/image.py       
2006-12-18 11:45:22.000000000 +0100
@@ -361,11 +361,12 @@
             vncdisplay = sxp.child_value(config, 'vncdisplay',
                                          int(self.vm.getDomid()))
             vncunused = sxp.child_value(config, 'vncunused')
+            keyboard = sxp.child_value(config, 'keyboard', 'en-us')
             if vncunused:
                 ret += ['-vncunused']
             else:
                 ret += ['-vnc', '%d' % vncdisplay]
-            ret += ['-k', 'en-us']
+            ret += ['-k', keyboard]
             vnclisten = sxp.child_value(config, 'vnclisten')
             if not(vnclisten):
                 vnclisten = 
xen.xend.XendRoot.instance().get_vnclisten_address()
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel