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.
KVM version is rust-vmm/kvm#368.
I am willing to submit a PR but cannot test it as I do not have access to the MSHV binary.
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.KVM version is rust-vmm/kvm#368.
I am willing to submit a PR but cannot test it as I do not have access to the MSHV binary.