]> git.proxmox.com Git - qemu.git/commit
usb-hid: activate usb tablet / mouse after migration.
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Oct 2011 10:54:35 +0000 (12:54 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 13 Oct 2011 10:58:51 +0000 (12:58 +0200)
commit3a3286bf0be8582854b3d451700ae38849b83b7c
tree2ec23ade5641bc539a26540b83f875a46c959942
parent905fb0342ca8fc480dd3e08f8a7aaabc339da796
usb-hid: activate usb tablet / mouse after migration.

qemu uses the ps/2 mouse by default.  The usb tablet (or mouse) is
activated as soon as qemu sees some guest activity on the device,
i.e. polling for HID events.  That used to work fine for both fresh
boot and migration.

Remote wakeup support changed the picture though: There will be no
polling after migration in case the guest suspended the usb bus,
waiting for wakeup events.  Result is that the ps/2 mouse stays
active.

Fix this by activating the usb tablet / mouse in post_load() in case
the guest enabled remote wakeup.

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