RFC ibverbs: new verbs for registering I/O memory
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | ibverbs: Add new provider verb for I/O memory registrationinclude/ | +5 | 0 replies | |
| 2/4 | uverbs: Add common ib_iomem_get servicedrivers/ include/ | +251 | 12 replies | |
| 3/4 | uverbs_cmd: Add uverbs command definitions for reg_io_mrdrivers/ drivers/ drivers/ +1 more | +167 | 0 replies | |
| 4/4 | mthca: Add support for reg_io_mr and unreg_io_mrdrivers/ | +111 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/4] ibverbs: new verbs for registering I/O memory
The following patches add verbs for registering I/O memory from user-space.
This capability allows device memory to be registered. More specifically, any VM_PFNMAP vma can be registered.
The mmap service is used to obtain the address of this memory and provide it to user space. This is where any security policy would be implemented.
The ib_iomem_get service requires that any address provided by the service be in a VMA owned by the process. This precludes providing 'random' addresses to the service to acquire access to arbitrary memory locations.
---
Tom Tucker (4):
mthca: Add support for reg_io_mr and unreg_io_mr
uverbs_cmd: Add uverbs command definitions for reg_io_mr
uverbs: Add common ib_iomem_get service
ibverbs: Add new provider verb for I/O memory registration
drivers/infiniband/core/umem.c | 248 +++++++++++++++++++++++++- drivers/infiniband/core/uverbs.h | 2 drivers/infiniband/core/uverbs_cmd.c | 140 +++++++++++++++ drivers/infiniband/core/uverbs_main.c | 2 drivers/infiniband/hw/mthca/mthca_provider.c | 111 ++++++++++++ include/rdma/ib_umem.h | 14 + include/rdma/ib_user_verbs.h | 24 ++- include/rdma/ib_verbs.h | 5 + 8 files changed, 534 insertions(+), 12 deletions(-)
Signature · 5 lines
Signed-off-by: Tom Tucker <tom-/Yg/[email protected]> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html