2 ms·
> I guess it's not possible to test driver code unless probe() succeeds, which requires actual hardware to be in place. Not the OP, but I think qemu and Virtua
by _pmf_ 10y ago
> I guess it's not possible to test driver code unless probe() succeeds, which requires actual hardware to be in place.
Not the OP, but I think qemu and VirtualBox have APIs for implementing custom virtual hardware (similar to how the rest of the machine is emulated). To your kernel running in the VM, the emulated device appears as a real device.