From 848c4d4480561154ada54851ba411aea3977c771 Mon Sep 17 00:00:00 2001 From: Ladi Prosek Date: Thu, 31 Mar 2016 11:53:48 +0200 Subject: [PATCH] virtio-input: retrieve EV_LED host config bits 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 9e0f46d88f..97b7dd6b5c 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;