virtio-input: retrieve EV_LED host config bits
PATCH 1/1 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 <[email protected]>
--- hw/input/virtio-input-host.c | 1 + 1 file changed, 1 insertion(+)
hw/input/virtio-input-host.c +1 -0
@@ -124,6 +124,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 ;
Signature · 1 line
2.5.5