From: Gerd Hoffmann <kraxel@redhat.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/4] virtio-input: core code & base class
Date: Wed, 18 Mar 2015 16:31:53 +0100 [thread overview]
Message-ID: <1426692713.330.15.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <20150318152735-mutt-send-email-mst@redhat.com>
On Mi, 2015-03-18 at 15:31 +0100, Michael S. Tsirkin wrote:
> On Wed, Mar 18, 2015 at 03:00:12PM +0100, Gerd Hoffmann wrote:
> > This patch adds virtio-input support to qemu. It brings a abstract
> > base class providing core support, other classes can build on it to
> > actually implement input devices.
> >
> > virtio-input basically sends linux input layer events (evdev) over
> > virtio.
> >
> > Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
>
> Two questions before I looked at code:
> - can you do a writeup for the virtio spec?
> might make it easier to review.
>From cover letter:
<quote>
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
</quote>
Guess you havn't seen that (yet) because get_maintainers.pl doesn't
really work for the cover letter, only the patches, and I forgot to cc
you for the whole series. [ anyone has a solution for this btw? ]
> - does linux need to support this?
For pass-through (patch 4) yes, emulated hid devices (patch 3) not
really. It is linux only for now because the code simply #includes the
system header files for the linux input layer, so it wouldn't compile on
something else.
> if yes we'll eventually want to take
> the header from there.
Yes, we can do that, for both linux input layer and virtio-input (once
merged upstream) headers, then go build this on non-linux hosts too.
I'd suggest to do that as incremental patch, after guest driver merge.
> maybe split out guest/host ABI?
When copying over virtio-input header from linux kernel that needs to
happen anyway.
> also might be a good idea to make style there
> linux-compliant (e.g. no typedefs, add typedefs
> in another header).
Linux driver linked above already has that.
cheers,
Gerd
next prev parent reply other threads:[~2015-03-18 15:32 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 14:00 [Qemu-devel] [PATCH 0/4] virtio: add input device Gerd Hoffmann
2015-03-18 14:00 ` [Qemu-devel] [PATCH 1/4] pci: add PCI_CLASS_INPUT_* Gerd Hoffmann
2015-03-18 14:00 ` [Qemu-devel] [PATCH 2/4] virtio-input: core code & base class Gerd Hoffmann
2015-03-18 14:31 ` Michael S. Tsirkin
2015-03-18 15:31 ` Gerd Hoffmann [this message]
2015-03-18 16:58 ` Michael S. Tsirkin
2015-03-19 7:45 ` Gerd Hoffmann
2015-03-19 9:24 ` Michael S. Tsirkin
2015-03-19 11:33 ` Gerd Hoffmann
2015-03-19 11:37 ` Michael S. Tsirkin
2015-03-19 14:38 ` Gerd Hoffmann
2015-03-19 15:56 ` Michael S. Tsirkin
2015-03-18 14:00 ` [Qemu-devel] [PATCH 3/4] virtio-input: emulated devices Gerd Hoffmann
2015-03-18 14:00 ` [Qemu-devel] [PATCH 4/4] virtio-input: evdev passthrough Gerd Hoffmann
-- strict thread matches above, loose matches on Subject: below --
2014-06-03 8:42 [Qemu-devel] [PATCH 0/4] input: add virtio input devices Gerd Hoffmann
2014-06-03 8:42 ` [Qemu-devel] [PATCH 2/4] virtio-input: core code & base class 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=1426692713.330.15.camel@nilsson.home.kraxel.org \
--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).