Re: [Qemu-devel] [PATCH] ps2: take exact use of ps2 buffer

2016-06-02 Thread Yang Hongyang
On Thu, Jun 2, 2016 at 6:05 PM, Gerd Hoffmann wrote: > On Do, 2016-06-02 at 17:19 +0800, Yang Hongyang wrote: > > Hi Gerd, > > Thanks for reply! > > > > > > On Thu, Jun 2, 2016 at 4:37 PM, Gerd Hoffmann > > wrote: > > On Do, 2016-06-02 at 14:05 +0800, Yang Hongyang wrote: > > >

Re: [Qemu-devel] [PATCH] ps2: take exact use of ps2 buffer

2016-06-02 Thread Gerd Hoffmann
On Do, 2016-06-02 at 17:19 +0800, Yang Hongyang wrote: > Hi Gerd, > Thanks for reply! > > > On Thu, Jun 2, 2016 at 4:37 PM, Gerd Hoffmann > wrote: > On Do, 2016-06-02 at 14:05 +0800, Yang Hongyang wrote: > > According to PS/2 Mouse/Keyboard Protocol, the keyboard > outp

Re: [Qemu-devel] [PATCH] ps2: take exact use of ps2 buffer

2016-06-02 Thread Yang Hongyang
Hi Gerd, Thanks for reply! On Thu, Jun 2, 2016 at 4:37 PM, Gerd Hoffmann wrote: > 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 > > probl

Re: [Qemu-devel] [PATCH] ps2: take exact use of ps2 buffer

2016-06-02 Thread Gerd Hoffmann
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

[Qemu-devel] [PATCH] ps2: take exact use of ps2 buffer

2016-06-01 Thread Yang Hongyang
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 "123456788...", because the 16th key event which is "8"