virtio-input: add live migration support
commit2d738374665ede5b7c08545e5b44a411e7c3e943
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 5 Apr 2016 12:31:41 +0000 (5 14:31 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 13 Apr 2016 13:52:28 +0000 (13 15:52 +0200)
tree87065c7e17e0bd2fc72a4cad7135c9ebb111df27
parent1a782629f668875955f4f08ac8f11de752d71298
virtio-input: add live migration support

virtio-input is simple enough that it doesn't need to xfer any state.
Still we have to wire up savevm manually, so the generic pci and virtio
are saved correctly.

Additionally we need to do some post-load processing to figure whenever
the guest uses the device or not, so we can give input routing hints to
the qemu input layer using qemu_input_handler_{activate,deactivate}.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1459859501-16965-1-git-send-email-kraxel@redhat.com
hw/input/virtio-input.c