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

  Hi,

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 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:
  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              |  117 +++
 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 |   75 ++
 scripts/update-linux-headers.sh               |    4 +-
 13 files changed, 2561 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] 7+ messages in thread

end of thread, other threads:[~2015-03-20 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-20 14:06 [Qemu-devel] [PATCH v2 0/6] virtio: add input device Gerd Hoffmann
2015-03-20 14:06 ` [Qemu-devel] [PATCH v2 1/6] pci: add PCI_CLASS_INPUT_* Gerd Hoffmann
2015-03-20 14:06 ` [Qemu-devel] [PATCH v2 2/6] virtio-input: add virtio_input.h Gerd Hoffmann
2015-03-20 14:06 ` [Qemu-devel] [PATCH v2 3/6] virtio-input: add linux/input.h Gerd Hoffmann
2015-03-20 14:06 ` [Qemu-devel] [PATCH v2 4/6] virtio-input: core code & base class Gerd Hoffmann
2015-03-20 14:07 ` [Qemu-devel] [PATCH v2 5/6] virtio-input: emulated devices Gerd Hoffmann
2015-03-20 14:07 ` [Qemu-devel] [PATCH v2 6/6] virtio-input: evdev passthrough 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).