diff options
author | Yishai Hadas <yishaih@nvidia.com> | 2025-07-17 15:17:29 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-07-23 01:42:10 -0400 |
commit | d83edab562a496a42720902a1d2effccd05c37c5 (patch) | |
tree | 2b49fa4d30b2e4018f74ca45c3ea5dc3e44c5a59 /rust/helpers/bug.c | |
parent | 5b2e45049dc06a876bc6b138218ddeb0814502ef (diff) |
RDMA/core: Introduce a DMAH object and its alloc/free APIs
Introduce a new DMA handle (DMAH) object along with its corresponding
allocation and deallocation APIs.
This DMAH object encapsulates attributes intended for use in DMA
transactions.
While its initial purpose is to support TPH functionality, it is
designed to be extensible for future features such as DMA PCI multipath,
PCI UIO configurations, PCI traffic class selection, and more.
Further details:
----------------
We ensure that a caller requesting a DMA handle for a specific CPU ID is
permitted to be scheduled on it. This prevent a potential security issue
where a non privilege user may trigger DMA operations toward a CPU that
it's not allowed to run on.
We manage reference counting for the DMAH object and its consumers
(e.g., memory regions) as will be detailed in subsequent patches in the
series.
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Reviewed-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/2cad097e849597e49d6b61e6865dba878257f371.1752752567.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions