qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Hans de Goede <hdegoede@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	spice-devel <spice-devel@lists.freedesktop.org>
Subject: Re: [Spice-devel] [Qemu-devel] spicevmv chardev,	guest agents and paravirtual mouse
Date: Thu, 13 Jan 2011 10:25:43 +0100	[thread overview]
Message-ID: <4D2EC517.8090703@redhat.com> (raw)
In-Reply-To: <4D2E0250.6090402@codemonkey.ws>

   Hi,

>>>> The VDAgentMouseState messages have one problem: They send the pointer
>>>> position as-is, which introduces a dependency on the screen size.
>>
>> Yeah, if we could get rid of that, that would be great. We could even
>> introduce a new mouse message type to the existing spice vdagent protocol
>> and use capabilities to switch between the 2.
>
> I think the typical trick is to scale the coordinates to some large
> resolution. Would there be any issue doing this in vdagent today?

No.  The vdagent actually registers a uinput device with the size 
matching the screen resolution today.  It could also register a tablet 
with a -- say -- 65536 x 65536 resolution and scale.  Even better would 
be to let spice-server or qemu do the scaling and feed vdagent/pvmouse 
with already scaled coordinates, so the vdagent doesn't has to hop 
through the loops Hans described to get the screen resolution coordinates.

qemu already uses a 0 -> 0xffff range internally for absolute input 
coordinates, the pvmouse (or should we better name it pvtablet?) should 
probably pass those values as-is to the guest.

cheers,
   Gerd

  reply	other threads:[~2011-01-13  9:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 16:12 [Qemu-devel] spicevmv chardev, guest agents and paravirtual mouse Gerd Hoffmann
2011-01-12 17:40 ` Anthony Liguori
2011-01-12 18:59   ` [Spice-devel] " Hans de Goede
2011-01-12 19:28     ` Alon Levy
2011-01-12 19:36       ` Anthony Liguori
2011-01-12 19:34     ` Anthony Liguori
2011-01-13  9:25       ` Gerd Hoffmann [this message]
2011-01-13  9:12     ` Gerd Hoffmann
2011-01-13  8:52   ` Gerd Hoffmann
2011-01-13 10:19 ` [Qemu-devel] Re: [Spice-devel] " Tiziano Müller
2011-01-13 10:54   ` Gerd Hoffmann

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=4D2EC517.8090703@redhat.com \
    --to=kraxel@redhat.com \
    --cc=anthony@codemonkey.ws \
    --cc=hdegoede@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=spice-devel@lists.freedesktop.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).