|
From: | Alexander Graf |
Subject: | Re: [Qemu-devel] [PATCH] input: Add trace events for polled keyboard input |
Date: | Thu, 30 Mar 2017 16:14:28 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 |
On 03/30/2017 04:10 PM, Peter Maydell wrote:
On 30 March 2017 at 14:35, Alexander Graf <address@hidden> wrote:When driving QEMU from the outside, we have basically no chance to determine how quickly the guest OS picks up key events, so we usually have to limit ourselves to very slow keyboard presses to make sure the guest always has enough chance to pick them up. This patch adds trace events for when the guest polls for HID keyboard events. That way we can be reasonably safely assume that the guest handled that one key event and can type the next.This feels like the wrong way to solve the problem to me. Maybe we should have something like the network and UART device models do where they can say "my queue is full, I cannot accept any more data from the outside world" ?
That's really hard to realize unfortunately. If events come in from VNC, how do you stall new events from arriving? Would you stop reading the VNC stream? Would you allocate random buffers until you manage to finally push data onto the HID queue again?
Keep in mind that HID events might deliberately not be interpreted. OVMF doesn't have to have a tablet driver usually for example, so your tablet queue will fill up as soon as you push any mouse movement information in.
Alex
[Prev in Thread] | Current Thread | [Next in Thread] |