From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5P7A-0005gb-JW for qemu-devel@nongnu.org; Fri, 23 Apr 2010 16:04:40 -0400 Received: from [140.186.70.92] (port=51689 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5P78-0005bb-R0 for qemu-devel@nongnu.org; Fri, 23 Apr 2010 16:04:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5OvJ-0001v4-72 for qemu-devel@nongnu.org; Fri, 23 Apr 2010 15:52:26 -0400 Received: from chello084112167138.7.11.vie.surfer.at ([84.112.167.138]:45775 helo=wiesinger.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5OvI-0001ng-KF for qemu-devel@nongnu.org; Fri, 23 Apr 2010 15:52:25 -0400 Date: Fri, 23 Apr 2010 21:50:27 +0200 (CEST) From: Gerhard Wiesinger Subject: Re: [Qemu-devel] Problem with QEMU on KVM In-Reply-To: <4BD02936.1050307@redhat.com> 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: Gerd Hoffmann Cc: Anthony Liguori , qemu-devel@nongnu.org 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 Ciao, Gerhard -- http://www.wiesinger.com/