epics-modules/devlib2

Linux: Simulate MMIO with userfaultfd()

mdavidsaver opened this issue · 1 comments

I think it would be possible to use the Linux userfaultfd() mechanism to enable in-process simulation of MMIO devices (as opposed to eg. QEMU models). Might be helpful in driver unit testing.

Turns out this isn't possible. The value being written is not available to the fault handler.