virtio-input: evdev passthrough
commit006a5edebe656114e0e0a6fb24b8aae6401c1cf4
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 28 Mar 2014 08:18:47 +0000 (28 09:18 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 23 Jun 2015 08:32:35 +0000 (23 10:32 +0200)
tree978902c82a04d7cefb8692b62f4fb12bef79e47f
parent6f2b9a5b24c488d38ace01910c684749ff922e26
virtio-input: evdev passthrough

This allows to assign host input devices to the guest:

qemu -device virtio-input-host-pci,evdev=/dev/input/event<nr>

The guest gets exclusive access to the input device, so be careful
with assigning the keyboard if you have only one connected to your
machine.

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