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

core: Introduce MR with dynamic keys #10317

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Commits on Aug 19, 2024

  1. core: Introduce MR with dynamic keys

    Memory registration consists of two parts: map/pin the memory for local
    access and export with a key for remote access. The first part is usually
    heavyweight and requries kernel involvement. The second part is less
    expensive and can be further separated into key allocation and key
    assignment. Key allocation may needs kernel involvement, but key assignment
    can be done in user space. This leads to the concept of MR with dynamic key.
    
    Dynamic key allows an MR be exported as different keys for different target,
    with the option to expose different address range and access rights, all
    without the overhead of registering the MR multiple times in the standard
    way.
    
    A new flag FI_MR_DYNAMIC_KEY is introduces to be used with memory registration
    calls. This flag also serves as a secondary capbility.
    
    New API functions are added to allocate / assign / revoke keys.
    
    Another flag FI_MR_SINGLE_USE is added for single use key assignment.
    
    Signed-off-by: Jianxin Xiong <[email protected]>
    j-xiong committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    215e321 View commit details
    Browse the repository at this point in the history