Skip to content

Allow arbitrary BorrowedFd for the ioctls needing an EventFd #309

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions