From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apZ6O-0005fw-PO for qemu-devel@nongnu.org; Mon, 11 Apr 2016 06:29:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apZ6J-00064z-0v for qemu-devel@nongnu.org; Mon, 11 Apr 2016 06:29:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apZ6I-000645-SE for qemu-devel@nongnu.org; Mon, 11 Apr 2016 06:29:46 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2526A37E72 for ; Mon, 11 Apr 2016 10:29:46 +0000 (UTC) From: Gerd Hoffmann Date: Mon, 11 Apr 2016 12:29:40 +0200 Message-Id: <1460370583-29038-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1460370583-29038-1-git-send-email-kraxel@redhat.com> References: <1460370583-29038-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL 2/5] virtio-input: retrieve EV_LED host config bits List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Ladi Prosek , Gerd Hoffmann , "Michael S. Tsirkin" From: Ladi Prosek VIRTIO_INPUT_CFG_EV_BITS with subsel of EV_LED was always returning an empty bitmap for pass-through input devices. Signed-off-by: Ladi Prosek Message-id: 1459418028-7473-1-git-send-email-lprosek@redhat.com Signed-off-by: Gerd Hoffmann --- hw/input/virtio-input-host.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/input/virtio-input-host.c b/hw/input/virtio-input-host.c index 9e0f46d..97b7dd6 100644 --- a/hw/input/virtio-input-host.c +++ b/hw/input/virtio-input-host.c @@ -125,6 +125,7 @@ static void virtio_input_host_realize(DeviceState *dev, Error **errp) virtio_input_bits_config(vih, EV_ABS, ABS_CNT); virtio_input_bits_config(vih, EV_MSC, MSC_CNT); virtio_input_bits_config(vih, EV_SW, SW_CNT); + virtio_input_bits_config(vih, EV_LED, LED_CNT); qemu_set_fd_handler(vih->fd, virtio_input_host_event, NULL, vih); return; -- 1.8.3.1