Skip to content

RFC ibverbs: new verbs for registering I/O memory

Tom Tucker linux-rdma 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ibverbs: Add new provider verb for I/O memory registrationinclude/rdma/ib_verbs.h+5 -00 replies
2/4uverbs: Add common ib_iomem_get servicedrivers/infiniband/core/umem.c include/rdma/ib_umem.h+251 -1112 replies
3/4uverbs_cmd: Add uverbs command definitions for reg_io_mrdrivers/infiniband/core/uverbs.h drivers/infiniband/core/uverbs_cmd.c drivers/infiniband/core/uverbs_main.c +1 more+167 -10 replies
4/4mthca: Add support for reg_io_mr and unreg_io_mrdrivers/infiniband/hw/mthca/mthca_provider.c+111 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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