From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32789) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYxa0-0005dM-SJ for qemu-devel@nongnu.org; Fri, 20 Mar 2015 10:07:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYxZt-0003GF-T3 for qemu-devel@nongnu.org; Fri, 20 Mar 2015 10:07:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYxZt-0003Fn-K4 for qemu-devel@nongnu.org; Fri, 20 Mar 2015 10:07:09 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t2KE78YE003245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 20 Mar 2015 10:07:08 -0400 From: Gerd Hoffmann Date: Fri, 20 Mar 2015 15:06:55 +0100 Message-Id: <1426860421-23041-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/6] virtio: add input device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , mst@redhat.com 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