• Artemy Kovalyov's avatar
    IB/umem: Update on demand page (ODP) support · d07d1d70
    Artemy Kovalyov authored
    Currently ODP MR may explicitly register virtual address space area
    of limited length.
    This change allows MR to cover entire process virtual address space
    dynamicaly adding/removing translation entries to device MTT.
    
    Add following changes to support implicit MR:
    * Allow umem to be zero size to back-up implicit MR.
    * Add new function ib_alloc_odp_umem() to add virtual memory regions
      to implicit MR dynamically on demand.
    * Add new function rbt_ib_umem_lookup() to find dynamically added
      virtual memory regions.
    * Expose function rbt_ib_umem_for_each_in_range() to other modules and
      make it safe
    Signed-off-by: default avatarArtemy Kovalyov <artemyko@mellanox.com>
    Signed-off-by: default avatarLeon Romanovsky <leon@kernel.org>
    Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
    d07d1d70
umem.c 8.95 KB