Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlx5: Allow opening a device with specified UCAPs #1571

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yishaih
Copy link
Member

@yishaih yishaih commented Feb 26, 2025

This series allows opening a device with specified UCAPs.

This functionality provides fine-grained control over specific firmware features by representing each capability as a character device with root read-write access.

Root processes can grant users special privileges by allowing access to these character devices. User contexts created using a file descriptor of a UCAP will have specific UCAP privileges.

The series includes a man page update for mlx5dv_open_device() to describe the expected usage and a pyverbs test to demonstrate the usage.

The matching kernel part was sent already to rdma-next.

Yishai Hadas and others added 5 commits February 26, 2025 18:25
To commit: 4f12f6ab8580 ("docs: infiniband: document the UCAP API").

Signed-off-by: Yishai Hadas <[email protected]>
Add file descriptor array attribute when creating a user context.

This change allows passing a file descriptor array when creating a user
context, to enable device capabilities represented by this array.

Change providers' code to support the new attribute.

Signed-off-by: Chiara Meiohas <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
Add support for file descriptor array attribute in mlx5dv_open_device().
This allows passing file descriptors of UCAP character devices to create
a ucontext with the associated capabilities.

Signed-off-by: Chiara Meiohas <[email protected]>
Signed-off-by: Yishai Hadas <[email protected]>
Add file descriptor array attributes when opening a device using
mlx5dv_open_device().

Signed-off-by: Linoy Ganti <[email protected]>
Signed-off-by: Edward Srouji <[email protected]>
Add a test where the client creates a context with an fd array, the
server uses a regular context, and traffic is run.

Signed-off-by: Linoy Ganti <[email protected]>
Signed-off-by: Edward Srouji <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants