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] fbfront: advertise either absolute or relative c

To: Eamon Walsh <ewalsh@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] fbfront: advertise either absolute or relative coordinates
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Fri, 11 Mar 2011 11:58:18 +0000
Cc: Olaf Hering <olaf@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>
Delivery-date: Fri, 11 Mar 2011 04:00:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4D792D59.9040801@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/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: <20110310175822.GA32033@xxxxxxxxx> <alpine.DEB.2.00.1103101808190.2968@kaball-desktop> <20110310181404.GA3333@xxxxxxxxx> <alpine.DEB.2.00.1103101912200.2968@kaball-desktop> <4D792D59.9040801@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Thu, 10 Mar 2011, Eamon Walsh wrote:
> We have had an issue here where the "request-abs-pointer" key is appearing in 
> XenStore _after_ the backend has gone to the Connected state.  Qemu xenfb.c 
> checks for this key in the "connect()" callback, causing it to miss the key 
> and default to relative coordinates.
> 
> xen be: vkbd-0: frontend update: page-ref
> xen be: vkbd-0: frontend not ready (yet)
> xen be: vkbd-0: frontend update: page-gref
> xen be: vkbd-0: frontend not ready (yet)
> xen be: vkbd-0: frontend update: event-channel
> xen be: vkbd-0: frontend not ready (yet)
> xen be: vkbd-0: frontend state: Initialising -> Initialised
> xen be: vkbd-0: frontend update: state
> xen be: vkbd-0: bind evtchn port 53
> xen be: vkbd-0: ring ref 13, remote-port 11, local-port 53
> xen be: vkbd-0: backend state: InitWait -> Connected               <----
> xen be: vkbd-0: backend update: state
> xen be: vkbd-0: frontend update: request-abs-pointer               <----
> xen be: vkbd-0: frontend state: Initialised -> Connected
> xen be: vkbd-0: frontend update: state
> 
> 
> This could be a problem specific to our display server, and it only happens 
> sometimes. But we have been carrying the patch below in our xenfb.c.  It 
> makes sense to respond to a direct watch on the key itself instead of looking 
> for it at a state change.  This may be suitable for upstream to Qemu.
> 
> I also note that the check in Qemu was previously made even before the 
> connected state.  It was changed in July, see:
> http://web.archiveorange.com/archive/v/1XS1v5z9uIQLGujGBDhT
> 

The patch looks sane.
Could you please rebase it on upstream qemu and send it to qemu-devel?


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