From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8O8N-0003ZJ-QD for qemu-devel@nongnu.org; Thu, 02 Jun 2016 04:37:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8O8I-00064P-0a for qemu-devel@nongnu.org; Thu, 02 Jun 2016 04:37:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8O8H-00064G-Rg for qemu-devel@nongnu.org; Thu, 02 Jun 2016 04:37:37 -0400 Message-ID: <1464856651.24775.56.camel@redhat.com> From: Gerd Hoffmann Date: Thu, 02 Jun 2016 10:37:31 +0200 In-Reply-To: <1464847505-27478-1-git-send-email-hongyang.yang@easystack.cn> References: <1464847505-27478-1-git-send-email-hongyang.yang@easystack.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] ps2: take exact use of ps2 buffer List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yang Hongyang Cc: qemu-devel@nongnu.org, Gonglei , Juan Quintela On Do, 2016-06-02 at 14:05 +0800, Yang Hongyang wrote: > According to PS/2 Mouse/Keyboard Protocol, the keyboard output buffer > size is 16 bytes, but we only use 15 bytes actually, this causes some > problem, for example, if I submit "123456789" in a bunch through VNC, > the actual result will be "12345678888888888...", because the 16th key > event which is "8" key up is dropped. What if you try a 10-char string next? Things are failing again. Keyboards are low-bandwidth devices, you can't flood them with data and expect things to work. Try this one instead: https://patchwork.ozlabs.org/patch/628491/ cheers, Gerd