Hi, This series adds virtio input support to qemu. virtio input basically sends linux evdev events over virtio.
Patch #1 is just the pci id. Patch #2 adds the core code as abstract qom class. Patch #3 adds emulated devices on top of that, and patch #4 adds evdev passthrough. The corresponding linux kernel driver is here: https://www.kraxel.org/cgit/linux/log/?h=virtio-input cheers, Gerd Gerd Hoffmann (4): pci: add virtio input pci device id virtio-input: core code & base class virtio-input: emulated devices virtio-input: evdev passthrough docs/specs/pci-ids.txt | 1 + hw/input/Makefile.objs | 6 + hw/input/virtio-input-hid.c | 484 +++++++++++++++++++++++++++++++++++++++ hw/input/virtio-input-host.c | 172 ++++++++++++++ hw/input/virtio-input.c | 284 +++++++++++++++++++++++ hw/virtio/virtio-pci.c | 135 +++++++++++ hw/virtio/virtio-pci.h | 37 +++ include/hw/pci/pci.h | 1 + include/hw/virtio/virtio-input.h | 140 +++++++++++ include/hw/virtio/virtio.h | 1 + 10 files changed, 1261 insertions(+) create mode 100644 hw/input/virtio-input-hid.c create mode 100644 hw/input/virtio-input-host.c create mode 100644 hw/input/virtio-input.c create mode 100644 include/hw/virtio/virtio-input.h -- 1.8.3.1