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: Problems with guest mouse Was: More issues with xl on 4.

To: M A Young <m.a.young@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: Problems with guest mouse Was: More issues with xl on 4.1.0-rc
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Mon, 7 Mar 2011 18:16:24 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Mon, 07 Mar 2011 10:17:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <alpine.LFD.2.02.1103062130590.25360@xxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <alpine.LFD.2.02.1102032048510.14219@xxxxxxxxxxxxxxx> <alpine.DEB.2.00.1102041443230.7277@kaball-desktop> <alpine.GSO.2.00.1102041506530.29161@xxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1102041531440.7277@kaball-desktop> <alpine.LFD.2.02.1102041539210.12366@xxxxxxxxxxxxxxxxxx> <alpine.LFD.2.02.1102041550450.12366@xxxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.1102041603380.7277@kaball-desktop> <alpine.LFD.2.02.1103062130590.25360@xxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Sun, 6 Mar 2011, M A Young wrote:
> On Fri, 4 Feb 2011, Stefano Stabellini wrote:
> 
> > On Fri, 4 Feb 2011, M A Young wrote:
> >> On Fri, 4 Feb 2011, M A Young wrote:
> >>
> >>> On Fri, 4 Feb 2011, Stefano Stabellini wrote:
> >>>
> >>>> On Fri, 4 Feb 2011, M A Young wrote:
> >>>>> On Fri, 4 Feb 2011, Stefano Stabellini wrote:
> >>>>>
> >>>>>> On Thu, 3 Feb 2011, M A Young wrote:
> >>>>>>> I have spotted another couple of bugs when testing with xl on 4.1.0-rc
> >>>>>>> and
> >>>>>>> a xen/next-2.6.38 based kernel.
> >>>>>>>
> >>>>>>> If I set vfb = [ 'sdl' ] in the configuration file, then I can type in
> >>>>>>> the
> >>>>>>> window produced, but the mouse doesn't work (the pointer stays fixed 
> >>>>>>> in
> >>>>>>> the middle of the window). Alao clicking on the window doesn't trigger
> >>>>>>> the
> >>>>>>> "grab keyboard and mouse" mode, though I can manually trigger it and
> >>>>>>> leave
> >>>>>>> it using the ctrl-alt key combination.
> >>>>>>
> >>>>>> ... I cannot reproduce the second one
> >>>>>> (however I am using X remoting because I don't have an X server on my
> >>>>>> testbox).
> >>>>>
> >>>>> Thanks for the first fix. The mouse problem is reproducible over remote 
> >>>>> X
> >>>>> (ssh -X) and if I use vnc rather than sdl. Do you have any idea how we
> >>>>> might debug this?
> >>>>
> >>>> Does the mouse work if you just have the console and gpm in the guest?
> >>>> What is the output of "xenstore-ls /local/domain/$DOMID/device/vkbd"?
> >>>
> >>> The mouse mostly works with a console and gpm - I get a reverse video 
> >>> cursor
> >>> which will move, cut and paste, though it isn't quite in step with where 
> >>> the
> >>> pointer would be, eg. if I enter the window from the bottom the cursor
> >>> appears more to the right than it should be.
> >>
> >
> > If you are getting mouse events in the guest's kernel, I think the basic
> > mechanism must be working correctly.
> > Could it be a problem with your xserver?
> >
> > Otherwise you need to add some printf in qemu in
> > hw/xenfb.c:xenfb_mouse_event.
> 
> I am still having problems with this. My debugging output of 
> xenfb_mouse_event looked the same as a different computer that didn't have 
> the proble. Do you have any further debugging suggestions?
 
Is there any difference in the VMs between the system that works and the
one that does not? In particular I am think about kernel or xorg
versions.

You could try to add some debug messages to
drivers/input/xen-kbdfront.c:input_handler in the guest kernel and see
if you are actually receiving the events you should be receiving.

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