• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kernelite / milo / 46506478331

30 Nov 2026 08:28PM UTC coverage: 52.411% (+0.7%) from 51.678%
46506478331

push

github

marcobuschini
feat(virtio): add VirtIO HID input driver and evdev event queue

Implement a VirtIO-MMIO HID input driver (`VirtioInputDevice`) for Device ID
18 (`VIRTIO_DEV_ID_INPUT`) alongside an IRQ-safe kernel input event queue and
Linux `evdev` ABI definitions.

- Add `extern "C"` Linux `evdev` UAPI structs (`linux_input_event`,
  `linux_input_id`, `linux_input_absinfo`) and event codes in
  `kernel/uapi/input.hpp` with ABI layout `static_assert` checks.
- Add `Kernel::Input::InputEvent` and `Kernel::Input::InputQueue`
  (`kernel/input/InputEvent.hpp`, `kernel/input/InputQueue.*`) providing a
  bounded IRQ-safe ring buffer with `WaitQueue` wakeup and oldest-event
  drop on overflow.
- Implement `VirtioInputDevice` (`kernel/drivers/virtio/virtio_input.*`) to
  query `VIRTIO_INPUT_CFG_*` capabilities (`ID_NAME`, `ID_DEVIDS`, `EV_BITS`,
  `ABS_INFO`), classify keyboard/mouse/tablet devices, pre-populate `eventq`
  with device-writable buffers, and replenish descriptors on `VIRTIO_MMIO_INT_VRING`.
- Bind all discovered VirtIO HID devices at boot via `HAL::Platform::init_input_devices`,
  wire `virtio-keyboard-device` and `virtio-tablet-device` in QEMU, and add
  shell (`test input`) and host (`virtio_input_test.cpp`) verification suites.

2792 of 6550 branches covered (42.63%)

Branch coverage included in aggregate %.

268 of 370 new or added lines in 9 files covered. (72.43%)

1 existing line in 1 file now uncovered.

5687 of 9628 relevant lines covered (59.07%)

3316.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

47.67
/kernel/input/InputQueue.cpp


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc