From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>, mst@redhat.com
Subject: [Qemu-devel] [PATCH v2 0/6] virtio: add input device
Date: Fri, 20 Mar 2015 15:06:55 +0100 [thread overview]
Message-ID: <1426860421-23041-1-git-send-email-kraxel@redhat.com> (raw)
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
next reply other threads:[~2015-03-20 14:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-20 14:06 Gerd Hoffmann [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1426860421-23041-1-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).