All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: 758881@bugs.debian.org, Gonglei <arei.gonglei@huawei.com>,
	Gabriele Giacone <1o5g4r8o@gmail.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [bisected] VNC server can't get all sent chars correctly
Date: Mon, 25 Aug 2014 09:30:00 +0200	[thread overview]
Message-ID: <87vbphyqkn.fsf@blackfin.pond.sub.org> (raw)
In-Reply-To: <53F85723.607@msgid.tls.msk.ru> (Michael Tokarev's message of "Sat, 23 Aug 2014 12:56:03 +0400")

Michael Tokarev <mjt@tls.msk.ru> writes:

> There's a bug filed against debian qemu package, there:
>
>  http://bugs.debian.org/758881
>
> which says about problems sending keypress events over VNC to
> a qemu guest, -- some keypresses gets lost, at least.
>
> The bisection between qemu 2.0 and 2.1 leads to this commit:
>
> commit 2858ab09e6f708e381fc1a1cc87e747a690c4884
> Author: Gonglei <arei.gonglei@huawei.com>
> Date:   Thu Apr 24 20:06:19 2014 +0800
>
>     ps2: set ps/2 output buffer size as the same as kernel
>
>     According to the PS/2 Mouse/Keyboard Protocol, the keyboard outupt buffer size
>     is 16 bytes. And the PS2_QUEUE_SIZE 256 was introduced in Qemu from the very
>     beginning.
>
>     When I started a  redhat5.6 32bit guest, meanwhile tapped the keyboard as quickly as
>     possible, the screen would show me "i8042.c: No controller found". As a result,
>     I couldn't use the keyboard in the VNC client.
>
>     Previous discussion about the issue in maillist:
>     http://thread.gmane.org/gmane.comp.emulators.qemu/43294/focus=47180
>
>     This patch has been tested on redhat5.6 32-bit/suse11sp3 64-bit guests.
>     More easy meathod to reproduce:
>     1.boot a guest with libvirt.
>     2.connect to VNC client.
>     3.as you see the BIOS, bootloader, Linux booting, run the follow simply shell script:
>     for((i=0;i<10000000;i++)) do virsh send-key redhat5.6 KEY_A; done
>
>     Actual results:
>     dmesg show "i8042.c: No controller found." And the keyboard is out of work.
>
>     Signed-off-by: Gonglei <arei.gonglei@huawei.com>
>     Reviewed-by: Juan Quintela <quintela@redhat.com>
>     Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>
>
> So it looks like something else is not right here.  Before this patch,
> it wasn't possible to use keyboard with VNC client with redhat 5 guest.
> Now, it isn't possible to use keyboard with VNC in another scenario which
> worked before (so it is a regression compared with 2.0 version).
>
> What do we do with this? :)

Suggest to add a tracepoint to the place that drops keystrokes due to
buffer being full, to verify that's really what happens.  Quick glance
at the code suggests ps2_queue().

  parent reply	other threads:[~2014-08-25  7:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-23  8:56 [Qemu-devel] [bisected] VNC server can't get all sent chars correctly Michael Tokarev
2014-08-25  3:19 ` Gonglei (Arei)
2014-08-25  7:30 ` Markus Armbruster [this message]
2014-08-25  7:36   ` Gonglei (Arei)
2014-08-25  9:37 ` Gerd Hoffmann
2014-08-25 10:40   ` [Qemu-devel] Bug#758881: " Gabriele Giacone
2014-08-26  4:11     ` Marc
2014-08-26  5:40       ` Gerd Hoffmann
2014-08-26  5:55         ` Michael Tokarev
2014-08-26  6:08           ` 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=87vbphyqkn.fsf@blackfin.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=1o5g4r8o@gmail.com \
    --cc=758881@bugs.debian.org \
    --cc=arei.gonglei@huawei.com \
    --cc=kraxel@redhat.com \
    --cc=mjt@tls.msk.ru \
    --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.