Adding RDMA proxy for /dev/uverbsX devices to gVisor#13731
Draft
TheCoolDinosuar wants to merge 6 commits into
Draft
Adding RDMA proxy for /dev/uverbsX devices to gVisor#13731TheCoolDinosuar wants to merge 6 commits into
TheCoolDinosuar wants to merge 6 commits into
Conversation
… ib_write_bw and reconstruct in container. Gate on RDMAProxy config flag.
…poofing for sysfs-based discovery path
Collaborator
|
@TheCoolDinosuar I'm already doing this work. I will send my patches upstream shortly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on #13297, this PR adds the
--rdmaproxyflag which allows for RDMA commands to work inside gVisor sandboxes through a mostly blind passthrough proxy. This allows foribv_devinfo,ibv_devices,ibv_rc_pingpong, andib_write_bwto work on containers with RDMA devices mounted. It takes a lot fromtpuproxy's implementation forrdmaDeviceandrdmaFDto allow access to/dev/uverbsXdevices. For device discovery in RDMA, it implements a new netlink protocol. Next, MR registration is also implemented in the sentry to make page pinning work. For iRDMA, reimplementing CQ/QPs is actually not necessary to getibv_rc_pingpongandib_write_bwto work due to CQ/QP buffers being registered as MRs. But this will need to be done for other providers.Implements the legacy write API.
Assisted by Claude.