]> xenbits.xensource.com Git - qemu-xen.git/commit
input: Add trace event for empty keyboard queue
authorAlexander Graf <agraf@suse.de>
Thu, 30 Mar 2017 14:22:55 +0000 (16:22 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 3 May 2017 12:20:12 +0000 (14:20 +0200)
commit2222e0a633070f7f3eafcc9d0e95e7f1a4e6fe36
treee62c1786a56a538634df34d725c09b4c50a884a5
parent05c6638b203fd7d8bbfa88ac6e6198e32ed0506f
input: Add trace event for empty keyboard queue

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 a trace events when the keyboarde queue is drained.
An external driver can use that as hint that new keys can be pressed.

Signed-off-by: Alexander Graf <agraf@suse.de>
Message-id: 1490883775-94658-1-git-send-email-agraf@suse.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/input/hid.c
hw/input/trace-events