summaryrefslogtreecommitdiff
path: root/include/linux/execmem.h
diff options
context:
space:
mode:
authorJacob Moroni <jmoroni@google.com>2026-03-05 20:08:26 +0300
committerLeon Romanovsky <leon@kernel.org>2026-03-08 15:37:38 +0300
commit4707bf5f6c86443bcfa9fcf5826effe46ebd6f21 (patch)
treed7bb464e6ab3cd6a012500f77712d733a49c6de3 /include/linux/execmem.h
parent3a0b171302eea1732a168e26db3b8461f51cc1f9 (diff)
downloadlinux-4707bf5f6c86443bcfa9fcf5826effe46ebd6f21.tar.xz
RDMA/irdma: Add support for revocable pinned dmabuf import
Use the new API to support importing pinned dmabufs from exporters that require revocation, such as VFIO. The revoke semantic is achieved by issuing a HW invalidation command but not freeing the key. This prevents further accesses to the region (they will result in an invalid key AE), but also keeps the key reserved until the region is actually deregistered (i.e., ibv_dereg_mr) so that a new MR registration cannot acquire the same key. Tested with lockdep+kasan and a memfd backed dmabuf. The rereg_mr path is explicitly blocked in libibverbs for dmabuf MRs (more specifically, any MR not of type IBV_MR_TYPE_MR), so the rereg_mr path for dmabufs was tested with a modified libibverbs. Signed-off-by: Jacob Moroni <jmoroni@google.com> Link: https://patch.msgid.link/20260305170826.3803155-6-jmoroni@google.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/linux/execmem.h')
0 files changed, 0 insertions, 0 deletions