From: Gerhard Wiesinger <lists@wiesinger.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Problem with QEMU on KVM
Date: Fri, 23 Apr 2010 21:50:27 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.1004232144100.28324@bbs.intern> (raw)
In-Reply-To: <4BD02936.1050307@redhat.com>
On Thu, 22 Apr 2010, Gerd Hoffmann wrote:
> Hi,
>
>> Had also a look at ps2.c/ps2.h, pckbd.c: There were no changes which
>> could explain such a behaviour. Also keyboard is very strange which
>> switches to CAPS LOCK (shift state) very unmotivated.
>
> Hmm. Recent qemu tries hard to make sure vncviewer and guest
> capslock/numlock state are in sync. It is a heuristic though and can fail in
> certain cases. Try "-vnc $display,no-lock-key-sync", does that help?
Tracked down the problem of the mouse that te mouse is in absolute
mouse mode (verified by logging, therefore coordinates are very high and absolute
and not relative):
static void pointer_event(VncState *vs, int button_mask, int x, int y)
{
...
if (vs->absolute) {
kbd_mouse_event(ds_get_width(vs->ds) > 1 ?
x * 0x7FFF / (ds_get_width(vs->ds) - 1) : 0x4000,
ds_get_height(vs->ds) > 1 ?
y * 0x7FFF / (ds_get_height(vs->ds) - 1) : 0x4000,
dz, buttons);
} else if (vnc_has_feature(vs, VNC_FEATURE_POINTER_TYPE_CHANGE)) {
x -= 0x7FFF;
y -= 0x7FFF;
/////////////////////////////////////////////////////////////
// We get here in (verified by core dump), but we should get into last
// else
/////////////////////////////////////////////////////////////
kbd_mouse_event(x, y, dz, buttons);
} else {
if (vs->last_x != -1)
kbd_mouse_event(x - vs->last_x,
y - vs->last_y,
dz, buttons);
vs->last_x = x;
vs->last_y = y;
}
...
}
Guess problems comes from the following commit (not yet verified):
commit 37c34d9d5d87ea9d51760310c8863b82cb8c055a
Author: Anthony Liguori <aliguori@us.ibm.com>
Date: Wed Mar 10 09:38:29 2010 -0600
input: make vnc use mouse mode notifiers
When we switch to absolute mode, we send out a notification (if the client
supports it). Today, we only send this notification when the client sends us
a mouse event and we're in the wrong mode.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Ciao,
Gerhard
--
http://www.wiesinger.com/
next prev parent reply other threads:[~2010-04-23 20:04 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-10 20:09 [Qemu-devel] Problem with QEMU on KVM Gerhard Wiesinger
2010-04-11 10:19 ` Mulyadi Santosa
2010-04-11 13:52 ` Gerhard Wiesinger
2010-04-12 9:16 ` Mulyadi Santosa
2010-04-12 12:07 ` Jamie Lokier
2010-04-13 0:28 ` Mulyadi Santosa
2010-04-13 16:32 ` [Qemu-devel] " Jan Kiszka
2010-04-19 6:45 ` Gerhard Wiesinger
2010-04-19 10:39 ` Jan Kiszka
2010-04-13 19:38 ` [Qemu-devel] " Gerhard Wiesinger
2010-04-19 18:37 ` Gerhard Wiesinger
2010-04-21 0:36 ` Jamie Lokier
2010-04-21 18:20 ` Gerhard Wiesinger
2010-04-22 10:47 ` Gerd Hoffmann
2010-04-23 19:50 ` Gerhard Wiesinger [this message]
2010-04-24 6:58 ` Gerhard Wiesinger
2010-05-04 5:09 ` Gerhard Wiesinger
2010-05-04 13:32 ` Anthony Liguori
2010-05-04 21:30 ` Problem with QEMU / KVM K D
2010-05-04 21:30 ` [Qemu-devel] " K D
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=alpine.LFD.2.00.1004232144100.28324@bbs.intern \
--to=lists@wiesinger.com \
--cc=aliguori@us.ibm.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.