Ensuring that this is actually an eventfd can be left to the kernel. If that isn’t sufficient, there is also an implementation via /proc/thread-self/fdinfo, though that would be slower.
Needed for cloud-hypervisor/cloud-hypervisor#7739 where the file descriptors will come from another process over SCM_RIGHTS. Emulation is possible but will have poor performance.
MSHV version is rust-vmm/mshv#309.
Ensuring that this is actually an eventfd can be left to the kernel. If that isn’t sufficient, there is also an implementation via
/proc/thread-self/fdinfo, though that would be slower.Needed for cloud-hypervisor/cloud-hypervisor#7739 where the file descriptors will come from another process over
SCM_RIGHTS. Emulation is possible but will have poor performance.MSHV version is rust-vmm/mshv#309.