[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] input: Add trace events for polled keyboard inp
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] input: Add trace events for polled keyboard input |
Date: |
Thu, 30 Mar 2017 15:10:03 +0100 |
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" ?
thanks
-- PMM