]> git.proxmox.com Git - qemu.git/commit
usb keyboard: add event event queue
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Jan 2011 16:42:06 +0000 (17:42 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jan 2011 16:21:34 +0000 (17:21 +0100)
commit5fae51a9c26c025b94f8d7c40f54b65049de7227
tree3f6b4db3df8b776f60efaca10e3ea4bae89b0e2b
parent13f8b97a57450534ccb7aaeb55095a668183fbee
usb keyboard: add event event queue

This patch adds a event queue to the usb keyboard.  This makes sure the
guest will see all key events even if they come in bursts.  With this
patch applied sending Ctrl-Alt-Del using vncviewer's F8 menu works.
Also with autosuspend enabled the first keypress on a suspended keyboard
takes a little longer to be delivered to the guest because the usb bus
must be resumed first.  Without event queue this easily gets lost.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-hid.c