xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Pasi Kärkkäinen" <pasik@iki.fi>
Cc: Dominic Russell <GTA_doum@hotmail.com>, xen-devel@lists.xen.org
Subject: Re: [BUG] xen-kbdfront.c
Date: Tue, 28 May 2013 10:41:20 -0400	[thread overview]
Message-ID: <20130528144120.GO724@phenom.dumpdata.com> (raw)
In-Reply-To: <20130527111315.GM11427@reaktio.net>

On Mon, May 27, 2013 at 02:13:15PM +0300, Pasi Kärkkäinen wrote:
> On Sun, May 26, 2013 at 05:12:54PM -0400, Dominic Russell wrote:
> >    Hello,
> > 
> >    By trying to find a workaround for the mouse â**unsyncâ** in VNC, I
> >    noticed that the mouse, even if the resolution has been changed by a
> >    .video argument on the kernel, was only moving in a 800x600 window.
> > 
> >    It must be due to those lines of code in xen-kbdfront.c (taken from
> >    kernel-3.9.1) :
> > 
> >      input_set_abs_params(ptr, ABS_X, 0, XENFB_WIDTH, 0, 0);
> >      input_set_abs_params(ptr, ABS_Y, 0, XENFB_HEIGHT, 0, 0);
> > 
> >    If the resolution has been overridden by a kernel argument, the width and
> >    height should be taken from those arguments also, not from the
> >    constants...
> > 
> 
> Feel free to send a patch :)
> 
> http://wiki.xen.org/wiki/Submitting_Xen_Patches

That does look like a bug. And to further compound it - the xen-fbfront is
the one for which the 'video' parameters are altered. Which means that 
xen-fbfront needs to export said parameter so that xen-kbdfront can use it.

Yikes. Oh, great:

133 /*                                                                              
134  * Wart: xenkbd needs to know default resolution.  Put it here until a          
135  * better solution is found, but don't leak it to the backend.                  
136  */           

Wart indeed.

Dominic, would you be interested in making a patch for this? The one mechanism
by which I think this might work is by 
1). changing 'video' in the xen-fbfront to 'xenfb_video' to at least not conflict
    with other symbols
2). make it an EXPORT_SYMBOL_GPL
3). stick the structure (video) in a the fbif.h and also the decleration.
4). use that in xen-kbdfront.
5). fiddle with the Kconfig file as need to make xen-kbdfornt depends on xen-fbfront.

> 
> -- Pasi
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
> 

      reply	other threads:[~2013-05-28 14:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-26 21:12 [BUG] xen-kbdfront.c Dominic Russell
2013-05-27 11:13 ` Pasi Kärkkäinen
2013-05-28 14:41   ` Konrad Rzeszutek Wilk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130528144120.GO724@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=GTA_doum@hotmail.com \
    --cc=pasik@iki.fi \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).