OSDN Git Service

suspend: make ps/2 devices wakeup the guest
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 23 Feb 2012 12:45:22 +0000 (13:45 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 24 Feb 2012 19:36:03 +0000 (13:36 -0600)
commitfd214d1828bf467d16251abce1747ffce932531f
tree4e3f3e0b21c722192681ef9ba7dcec7c65768b61
parent9b9df25a474bfee59dd46d033eb4ccc16582aac2
suspend: make ps/2 devices wakeup the guest

This patch adds wakeup support to ps/2 emulation.  Any key press on the
ps/2 keyboard will wakeup the guest.  Likewise any mouse button press
will wakeup the guest.  Mouse moves are ignored, so the guest will not
wakeup in case your mouse crosses the vnc window of a suspended guest by
accident.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/ps2.c