DOCA Device Emulation — разработка эмуляции PCIe-устройств

★ 7.6 · content

doca-devemu is a Claude Code skill that guides DPU-side development with the DOCA Device Emulation library, enabling BlueField to expose a custom emulated PCIe device that the host kernel driver treats as real hardware. It covers all three sub-libraries — PCI Generic, virtio-net, and virtio-fs — helping with sub-library selection, per-sub-library DOCA Core context initialization, doorbell and DMA primitive wiring, capability discovery via `doca_devemu_*_cap_*` queries against `doca_devinfo`, and diagnosing `DOCA_ERROR_*` returns from `doca_devemu_*` calls. The skill requires DOCA SDK installed at `/opt/mellanox/doca` on both host and BlueField (Ubuntu 22.04/24.04 or RHEL/SLES) and reads the local install via pkg-config and the samples under `/opt/mellanox/doca/samples/doca_devemu/`. It targets engineers writing the emulation backend directly in C, C++, or via FFI — where packaged solutions like DOCA SNAP Service or DOCA Virtio-net Service are not an option.