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

kernelite / milo / 46461526047

30 Nov 2026 04:24PM UTC coverage: 49.451% (-0.1%) from 49.558%
46461526047

push

github

web-flow
feat(driver): implement qemu fw cfg mmio dma driver 0x09020000 (#203)

* feat(drivers): add QEMU fw_cfg MMIO/DMA driver and stabilize block IRQ tests

Implement the modular QEMU Firmware Config (`fw_cfg`) driver in
`kernel/drivers/firmware/fw_cfg.{hpp,cpp}` with QEMU `virt` target
definitions (`0x09020000`) in `kernel/hal/targets/qemu_virt/fw_cfg.hpp`
and FDT `qemu,fw-cfg-mmio` node discovery in `kernel/boot/fdt.{hpp,cpp}`.

- Encapsulate big-endian selector, data, and 64-bit DMA register access
  and `FWCfgDmaAccess` descriptor serialization under `Sync::IrqGuard`
- Support `FW_CFG_FILE_DIR` (`0x0019`) enumeration and file lookup/reads
  (including `etc/ramfb`) with 8-byte alignment and physical RAM bounds checks
- Probe `fw_cfg` signature, feature bitmap, and `etc/ramfb` presence during
  kernel boot in `kernel/main.cpp` and add host unit tests in
  `tests/host/fw_cfg_test.cpp`
- Fix `test all` hang in `VirtioBlkDevice`: move synthetic GICv2 SPI probe
  in `kernel/shell/tests/test_cpu.cpp` to unused INTID 96 (avoiding collision
  with `virtio-blk` SPI 79), preserve DTB trigger modes in `GicV2::init()`,
  and drain pending device IRQs across boot-context `wfi` and shell test
  transitions

2472 of 6080 branches covered (40.66%)

Branch coverage included in aggregate %.

205 of 371 new or added lines in 4 files covered. (55.26%)

4918 of 8864 relevant lines covered (55.48%)

3518.67 hits per line

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

28.62
/kernel/boot/fdt.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