From: "Michael S. Tsirkin" <mst@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4 0/6] virtio: add input device
Date: Thu, 28 May 2015 11:50:12 +0200 [thread overview]
Message-ID: <20150528114941-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <1432806398-1261-1-git-send-email-kraxel@redhat.com>
On Thu, May 28, 2015 at 11:46:32AM +0200, Gerd Hoffmann wrote:
> 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).
>
> For v4 I've splitted the patches, so virtio-*-device and virtio-*-pci
> are added by separate patches. I've also left out pass-through for now.
>
> So, patches 1-3 implement the actual devices, and they should be ready
> to merge. They apply cleanly to master and build just fine with a minor
> fixup (s/64/32/ for virtio_input_get_features). I plan to send out a
> pull request for them soon.
>
> Patches 4-6 carry the virtio-pci support code. They have a dependency
> on the virtio-1 branch (from mst or cordula), because I want them be
> non-transitional devices. The device has been designed with virtio-1
> in mind, where virtio-pci config space moves from io to mmio, so having
> a bit larger config space isn't a big issue.
>
> Not sure how to proceed best with patches 4-6. I don't feel like making
> them transitional devices, but missing qemu 2.4 because virtio-pci isn't
> ready for virtio 1.0 doesn't look nice either :(
Help us complete virtio 1 support in 2.4?
> Guest driver: Present in linux kernel 4.1-rc1 & newer.
>
> 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):
> virtio-input: add linux/input.h
> virtio-input: core code & base class [device]
> virtio-input: emulated devices [device]
> pci: add PCI_CLASS_INPUT_*
> virtio-input: core code & base class [pci]
> virtio-input: emulated devices [pci]
>
> hw/input/Makefile.objs | 5 +
> hw/input/virtio-input-hid.c | 502 +++++++++++++
> hw/input/virtio-input.c | 282 ++++++++
> hw/virtio/virtio-pci.c | 120 ++++
> hw/virtio/virtio-pci.h | 27 +
> include/hw/pci/pci_ids.h | 7 +
> include/hw/virtio/virtio-input.h | 105 +++
> include/hw/virtio/virtio.h | 1 +
> include/standard-headers/linux/input.h | 1198 ++++++++++++++++++++++++++++++++
> scripts/update-linux-headers.sh | 4 +-
> 10 files changed, 2250 insertions(+), 1 deletion(-)
> create mode 100644 hw/input/virtio-input-hid.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
>
> --
> 1.8.3.1
prev parent reply other threads:[~2015-05-28 9:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-28 9:46 [Qemu-devel] [PATCH v4 0/6] virtio: add input device Gerd Hoffmann
2015-05-28 9:46 ` [Qemu-devel] [PATCH v4 1/6] virtio-input: add linux/input.h Gerd Hoffmann
2015-05-28 9:46 ` [Qemu-devel] [PATCH v4 2/6] virtio-input: core code & base class [device] Gerd Hoffmann
2015-05-28 9:46 ` [Qemu-devel] [PATCH v4 3/6] virtio-input: emulated devices [device] Gerd Hoffmann
2015-05-28 9:46 ` [Qemu-devel] [PATCH v4 4/6] pci: add PCI_CLASS_INPUT_* Gerd Hoffmann
2015-05-28 9:46 ` [Qemu-devel] [PATCH v4 5/6] virtio-input: core code & base class [pci] Gerd Hoffmann
2015-05-28 9:46 ` [Qemu-devel] [PATCH v4 6/6] virtio-input: emulated devices [pci] Gerd Hoffmann
2015-05-28 9:50 ` Michael S. Tsirkin [this message]
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=20150528114941-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=cornelia.huck@de.ibm.com \
--cc=kraxel@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).