From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guillaume Rousse Subject: [PATCH] Configurable keyboard mapping for HVM Date: Mon, 18 Dec 2006 11:49:02 +0100 Message-ID: <4586721E.1070902@inria.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060308000003090604050204" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------060308000003090604050204 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Current keyboard mapping is hardcoded to en-US in image.py. Attached patch make this value a configurable option. --------------060308000003090604050204 Content-Type: text/x-patch; name="xen-3.0.3.allow_keyboard_mapping.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xen-3.0.3.allow_keyboard_mapping.patch" 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') 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() --------------060308000003090604050204 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------060308000003090604050204--