From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqMyc-0001Ls-6e for qemu-devel@nongnu.org; Wed, 13 Apr 2016 11:45:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqMyZ-0004mo-NN for qemu-devel@nongnu.org; Wed, 13 Apr 2016 11:45:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqMyZ-0004mX-IE for qemu-devel@nongnu.org; Wed, 13 Apr 2016 11:45:07 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (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 2DE6215553 for ; Wed, 13 Apr 2016 15:45:07 +0000 (UTC) From: Gerd Hoffmann Date: Wed, 13 Apr 2016 17:44:58 +0200 Message-Id: <1460562303-17079-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1460562303-17079-1-git-send-email-kraxel@redhat.com> References: <1460562303-17079-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL v2 4/9] 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