From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Smith Subject: Re: [PATCH] Paravirt framebuffer backend tools [2/5] Date: Thu, 7 Sep 2006 10:55:29 +0100 Message-ID: <20060907095529.GA3511@cam.ac.uk> References: <20060904090150.GC4812@cam.ac.uk> <44FC224D.3090300@bull.net> <20060906091505.GD3257@cam.ac.uk> <44FEB3DE.5070502@bull.net> <20060906171006.GA5306@cam.ac.uk> <44FFCAC0.6060809@bull.net> <20060907083848.GA3078@cam.ac.uk> <44FFE702.7000609@bull.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0197978719==" Return-path: In-Reply-To: <44FFE702.7000609@bull.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Laurent Vivier Cc: Jeremy Katz , aliguori , xen-devel , sos22@srcf.ucam.org, Markus Armbruster List-Id: xen-devel@lists.xenproject.org --===============0197978719== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7" Content-Disposition: inline --fdj2RfSjLxBAspz7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > > It'd be nice if, from both machines, pressing the key labelled 'w' on > > the keyboard resulted in a 'w' being sent to whatever application is > > reading from the keyboard at the time. > --->_I think it's better to have bad mapping than missing symbols._<--- Agreed. > > Given that the backend knows exactly what each scancode is supposed to > > map to, we should in principle be able to avoid this sort of problem. > > It's just a matter of connecting everything up correctly. :) > No, I'm sorry, I don't think so. Okay, dumbest possible solution: the backend queries the local X server for its keymap, and publishes that in xenbus. You then have some userspace application running in the guest domain which looks at that and does xmodmap or loadkeys as appropriate. This is really rather distasteful, but I think it allows every key which can be typed on the backend keyboard to be transmitted to the frontend and rendered correctly there. You have to come up with some way of representing the keymap, but at least for Linux that's already done for us. Does this break anything? > Except, perhaps, if you send UTF-8 directly from backend to frontend > without translating it. But it supposes that frontend keyboard > driver is able to manage UTF-8 instead of linux scancode. But it > will work with console not with X11. I think X11 is working with > scancode too. It will be very messy... Yeah, we don't want to go down that path. Steven. --fdj2RfSjLxBAspz7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE/+yRO4S8/gLNrjcRArWrAJ9plHEmJ4y1Q+H6nzG5vEk8uqqXWACfRTaU CIm8Ks1V0DYhSTk6lXmP+/0= =r+x5 -----END PGP SIGNATURE----- --fdj2RfSjLxBAspz7-- --===============0197978719== 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 --===============0197978719==--