qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v3 0/6] virtio: add input device
@ 2015-03-26 11:26 Gerd Hoffmann
  2015-03-26 11:26 ` [Qemu-devel] [PATCH v3 1/6] pci: add PCI_CLASS_INPUT_* Gerd Hoffmann
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Gerd Hoffmann @ 2015-03-26 11:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: virtio-dev, Gerd Hoffmann, mst

This patch series adds virtio input devices.  It's basically sending
linux evdev events over virtio.  There is support for emulated hid
devices (i.e. send usual input to virtio device instead of usb or ps2
device) and for evdev device pass-through.

This depends on mst's virtio-1.0 patches.

Changes in v3:
 * sync header with v5 of the kernel driver patch.
   [ there was a abi change, testing this series requires v5 of the
     kernel patch, the branch below is up-to-date too ]
 * minor tweaks.

Changes in v2:
 * sync header files from linux & use them.
 * added virtio_input_devids struct, pass device ids from host
   (requested on guest driver review).

Guest driver:
  https://www.kraxel.org/cgit/linux/log/?h=virtio-input

Specification (slightly outdated, latest changes from kernel driver
review not added yet):
  https://www.kraxel.org/cgit/virtio-spec/log/?h=virtio-input
  https://www.kraxel.org/virtio/virtio-v1.0-csprd03-virtio-input.html#x1-2640007

Gerd Hoffmann (6):
  pci: add  PCI_CLASS_INPUT_*
  virtio-input: add virtio_input.h
  virtio-input: add linux/input.h
  virtio-input: core code & base class
  virtio-input: emulated devices
  virtio-input: evdev passthrough

 hw/input/Makefile.objs                        |    6 +
 hw/input/virtio-input-hid.c                   |  502 +++++++++++
 hw/input/virtio-input-host.c                  |  182 ++++
 hw/input/virtio-input.c                       |  282 ++++++
 hw/virtio/virtio-pci.c                        |  150 ++++
 hw/virtio/virtio-pci.h                        |   37 +
 include/hw/pci/pci_ids.h                      |    7 +
 include/hw/virtio/virtio-input.h              |  118 +++
 include/hw/virtio/virtio.h                    |    1 +
 include/standard-headers/linux/input.h        | 1198 +++++++++++++++++++++++++
 include/standard-headers/linux/virtio_ids.h   |    1 +
 include/standard-headers/linux/virtio_input.h |   76 ++
 scripts/update-linux-headers.sh               |    4 +-
 13 files changed, 2563 insertions(+), 1 deletion(-)
 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
 create mode 100644 include/standard-headers/linux/input.h
 create mode 100644 include/standard-headers/linux/virtio_input.h

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-04-07  7:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-26 11:26 [Qemu-devel] [PATCH v3 0/6] virtio: add input device Gerd Hoffmann
2015-03-26 11:26 ` [Qemu-devel] [PATCH v3 1/6] pci: add PCI_CLASS_INPUT_* Gerd Hoffmann
2015-03-26 11:26 ` [Qemu-devel] [PATCH v3 2/6] virtio-input: add virtio_input.h Gerd Hoffmann
2015-03-26 11:26 ` [Qemu-devel] [PATCH v3 3/6] virtio-input: add linux/input.h Gerd Hoffmann
2015-03-26 11:26 ` [Qemu-devel] [PATCH v3 4/6] virtio-input: core code & base class Gerd Hoffmann
2015-03-26 11:26 ` [Qemu-devel] [PATCH v3 5/6] virtio-input: emulated devices Gerd Hoffmann
2015-03-26 11:26 ` [Qemu-devel] [PATCH v3 6/6] virtio-input: evdev passthrough Gerd Hoffmann
2015-04-02 22:24   ` Marc-André Lureau
2015-04-07  7:53     ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).