From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5ZKi-0002J7-Vv for qemu-devel@nongnu.org; Sat, 24 Apr 2010 02:59:21 -0400 Received: from [140.186.70.92] (port=46956 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5ZKe-0002Ip-5a for qemu-devel@nongnu.org; Sat, 24 Apr 2010 02:59:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5ZKb-0008PR-Eq for qemu-devel@nongnu.org; Sat, 24 Apr 2010 02:59:15 -0400 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:53066 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5ZKa-0008OA-TY for qemu-devel@nongnu.org; Sat, 24 Apr 2010 02:59:13 -0400 Date: Sat, 24 Apr 2010 08:58:38 +0200 (CEST) From: Gerhard Wiesinger Subject: Re: [Qemu-devel] Problem with QEMU on KVM In-Reply-To: Message-ID: References: <20100421003632.GV11723@shareable.org> <4BD02936.1050307@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Gerd Hoffmann On Fri, 23 Apr 2010, Gerhard Wiesinger wrote: > 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 > 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 Ok, verified: git revert -n 37c34d9d5d87ea9d51760310c8863b82cb8c055a => works well. Ciao, Gerhard -- http://www.wiesinger.com/