Skip to content

Allow arbitrary BorrowedFd for the ioctls needing an EventFd #368

Description

@DemiMarie

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions