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] RFC: drop frontend support for relative pointer

To: Markus Armbruster <armbru@xxxxxxxxxx>
Subject: Re: [Xen-devel] RFC: drop frontend support for relative pointer
From: Jean Guyader <jean.guyader@xxxxxxxxx>
Date: Mon, 12 Oct 2009 22:18:06 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Daniel P. Berrange" <berrange@xxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Delivery-date: Mon, 12 Oct 2009 14:18:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QjD4dCeggznuXXRpcPXCPrCDgzwfS/zwURKFUmd5X6o=; b=Lnkpdu9Kc57bebik1+p87rjQJmnvAByfz5+Vais0RpezB6bLnwU+08IlHPUJ5entmM x/Zveiyt6PUnBLw3SdemuzieulGEKcWQBjuK2hCvV9zxBrUmGbHRlLB4NyqPZal9Y1Kq rOtUnmo4E4Oudd9dQC9iMHqDmz4mx+05+7U+U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=Tb806QEQP3VPprlrLyYOvJbbqd63V3PXZ+szD4KEIUiyTm0Fax327xQ/sUHKhwnUmY wq5pvXQGquajQK9FZfyYgkSVvkNIzOeO8tKhDi0Ur1yRiRCon2AjGteHa6FunUu5VeNO YiF+DY2FNzVMkQ3f/mBjafV5nWbTBwYA0zCmg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <87d44ss5su.fsf@xxxxxxxxxxxxxxxxx>
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: <87vdirw2d8.fsf@xxxxxxxxxxxxxxxxx> <alpine.DEB.2.00.0910071829490.25583@kaball-desktop> <20091007200124.GD2270@xxxxxxxxxx> <alpine.DEB.2.00.0910081221070.11437@kaball-desktop> <87skduoxbo.fsf@xxxxxxxxxxxxxxxxx> <f68b66460910121102p1239f7fdveaa154906ca5e5d9@xxxxxxxxxxxxxx> <f68b66460910121131u634cab5dya30f47958431149c@xxxxxxxxxxxxxx> <87d44ss5su.fsf@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
2009/10/12 Markus Armbruster <armbru@xxxxxxxxxx>:
> Jean Guyader <jean.guyader@xxxxxxxxx> writes:
>
>> 2009/10/12 Jean Guyader <jean.guyader@xxxxxxxxx>:
>>> 2009/10/8 Markus Armbruster <armbru@xxxxxxxxxx>:
>>>> Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> writes:
>>>>
>>>>> On Wed, 7 Oct 2009, Daniel P. Berrange wrote:
>>>>>> That's good to know - stubdom was one area I was concerned about. To the
>>>>>> best of my knowledge the only backend that ever sent relative mouse 
>>>>>> events
>>>>>> was the old PVFB we had in Fedora 6 which was the original code before
>>>>>> the eventual merge into official xen-devel trees. So official repos have
>>>>>> always defaulted to absolute mode.  Hopefully no one out there has gone
>>>>>> and re-implemented the PVFB backend in any other fork of Xen and dropped
>>>>>> ABS mode or made REL the default ???
>>>>>>
>>>>>> IMHO if ABS mode is able to work correctly, then there's absolutely no
>>>>>> benefit in having a REL mode at all, so its best deleted / removed.
>>>>>
>>>>> I guess keeping around unused code doesn't make much sense but I was just
>>>>> being cautious, given that for example XCI is currently using relative
>>>>> coordinates so they are not dead just yet.
>>>>
>>>> Just to avoid misunderstandings:
>>>>
>>>> * Does XCI set feature-abs-pointer in xenstore?
>>>>
>>>> * If it does, does it read request-abs-pointer from xenstore?
>>>>
>>>> * Under what circumstances (if any) does it send XENKBD_TYPE_MOTION, and
>>>>  under what circumstances (if any) does it send XENKBD_TYPE_POS?
>>>>
>>>
>>> Hi,
>>>
>>> I just checked and we have feature-abs-pointer and request-abs-pointer
>>> set to 1 xenstore.
>>> The function we use to inject mouse/keyboard event in the guess is
>>> kbd_mouse_event and it works with xenkbd.
>>>
>>
>> I checked into the code and we force xenkb to use relative coordinates.
>> We use that because in XCI the hardware mouse on the host is generally
>> setup to send relative coordinates, and we do a 1 to 1 map for the
>> mouse/keyboard
>> event.
>
> Thanks for your help.  To sum up:
>

> * The XCI backend advertizes absolute pointers (feature-abs-pointer set
>  in xenstore)
>

Yes.

> * The frontend asks for it (request-abs-pointer set in xenstore)
>
> * Regardless, the XCI backend sends only relative coordinates (event
>  type XENKBD_TYPE_POS).
>
> Correct?
>
> If yes, then this works more by accident than by design :)
>

Yep it does work, that is wrong in our code.
I didn't know about this xenstore protocol when I hacked it up.

Here is the nasty patch:
http://git/git/xenclient/ioemu-pq.git/tree/master/fix-imobile-mouse

> By setting feature-abs-pointer, the backend offers absolute events.
> Reneging on this offer after the frontend accepted it is a bug.
>

Yep, I belive there is a bug somewhere.

> What now?  Could XCI upgrade to absolute?  If not, could it at least
> stop offering feature-abs-pointer?
>
I'll fix that inside our code.

I don't really thing we could use absolute because we do graphic
device pass through with PV guest and the resolution we have on the
screen is completely decouple with the fb resolution.

Jean

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

<Prev in Thread] Current Thread [Next in Thread>