xemu/hw/rdma
Yuval Shaia b196d4f1d6 hw/rdma: Skip data-path mr_id translation
With the change made in commit 68b89aee71 ("Utilize ibv_reg_mr_iova for
memory registration") the MR emulation is no longer needed in order to
translate the guest addresses into host addresses.
With that, the next obvious step is to skip entirely the processing in
data-path.
To accomplish this, return the backend's lkey to driver so we will not
need to do the emulated mr_id to backend mr_id translation in data-path.

The function build_host_sge_array is still called in data-path but only
for backward computability with statistics collection.

While there, as a cosmetic change to make the code cleaner - make one
copy of the function rdma_backend_create_mr and leave the redundant
guest_start argument in the legacy code.

Signed-off-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <20200320143429.9490-3-yuval.shaia.ml@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
2020-03-21 19:16:38 +02:00
..
vmw hw/rdma/vmw/pvrdma_dev_ring: Replace strncpy with pstrcpy 2020-03-21 19:13:12 +02:00
Kconfig kconfig: add dependencies on CONFIG_MSI_NONBROKEN 2019-03-18 09:39:57 +01:00
Makefile.objs * Kconfig improvements (msi_nonbroken, imply for default PCI devices) 2019-03-28 09:18:53 +00:00
rdma_backend_defs.h hw/rdma: Add SRQ support to backend layer 2019-05-04 15:55:56 +03:00
rdma_backend.c hw/rdma: Skip data-path mr_id translation 2020-03-21 19:16:38 +02:00
rdma_backend.h hw/rdma: Skip data-path mr_id translation 2020-03-21 19:16:38 +02:00
rdma_rm_defs.h hw/rdma: Modify create/destroy QP to support SRQ 2019-05-04 15:55:56 +03:00
rdma_rm.c hw/rdma: Skip data-path mr_id translation 2020-03-21 19:16:38 +02:00
rdma_rm.h hw/rdma: Modify create/destroy QP to support SRQ 2019-05-04 15:55:56 +03:00
rdma_utils.c hw/rdma: Free all receive buffers when QP is destroyed 2019-03-16 15:52:44 +02:00
rdma_utils.h Use #include "..." for our own headers, <...> for others 2019-05-13 08:58:55 +02:00
rdma.c {hmp, hw/pvrdma}: Expose device internals via monitor interface 2019-03-16 15:52:44 +02:00
trace-events trace-events: Shorten file names in comments 2019-03-22 16:18:07 +00:00