Re: [Qemu-devel] [PATCH v2] Fix input-linux reading from device

2017-03-27 Thread Philippe Mathieu-Daudé
Hi Javier, can you add a line to explain what did you change between v1/v2? Thank, Phil. On 03/26/2017 06:53 AM, Javier Celaya wrote: The evdev devices in input-linux.c are read in blocks of one whole event. If there are not enough bytes available, they are discarded, instead of being kept fo

Re: [Qemu-devel] [PATCH v2] Fix input-linux reading from device

2017-03-27 Thread Javier Celaya
Hi Javi 2017-03-27 12:11 GMT+02:00 Gerd Hoffmann : > On So, 2017-03-26 at 11:53 +0200, Javier Celaya wrote: > > The evdev devices in input-linux.c are read in blocks of one whole > > event. If there are not enough bytes available, they are discarded, > > instead of being kept for the next read o

Re: [Qemu-devel] [PATCH v2] Fix input-linux reading from device

2017-03-27 Thread Gerd Hoffmann
On So, 2017-03-26 at 11:53 +0200, Javier Celaya wrote: > The evdev devices in input-linux.c are read in blocks of one whole > event. If there are not enough bytes available, they are discarded, > instead of being kept for the next read operation. This results in > lost events, of even non-working d