virtio-input: emulated devices [device]
commit55a1d80a41032d6133adec041c0096820beaa1b7
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 1 Apr 2014 08:06:29 +0000 (1 10:06 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 29 May 2015 08:30:40 +0000 (29 10:30 +0200)
treed4eb032b9ad7fbb54c6b2766493b752da00f3490
parentf73ddbad397f98c1d476ffbf93d65af1cfa796e6
virtio-input: emulated devices [device]

This patch adds the virtio-input-hid base class and
virtio-{keyboard,mouse,tablet} subclasses building on the base class.
They are hooked up to the qemu input core and deliver input events
to the guest like all other hid devices (ps/2 kbd, usb tablet, ...).

Using them is as simple as adding "-device virtio-tablet-device" to
your command line, for use all transports except pci.  virtio-pci
support comes as separate patch, once virtio-pci got virtio 1.0
support.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/input/Makefile.objs
hw/input/virtio-input-hid.c [new file with mode: 0644]
include/hw/virtio/virtio-input.h