]> git.proxmox.com Git - mirror_qemu.git/commit
hw/rdma: Utilize ibv_reg_mr_iova for memory registration
authorYuval Shaia <yuval.shaia@oracle.com>
Sun, 18 Aug 2019 13:21:07 +0000 (16:21 +0300)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Wed, 6 Nov 2019 10:49:04 +0000 (12:49 +0200)
commit68b89aee710ab48b3dcaaa721bbc5d8aa5ea24d1
tree9f3ecdbdc16421e3f88198a038995e0d2cad5038
parentee108585bb1924a8df88188925d0d01b90b4b9e8
hw/rdma: Utilize ibv_reg_mr_iova for memory registration

The virtual address that is provided by the guest in post_send and
post_recv operations is related to the guest address space. This address
space is unknown to the HCA resides on host so extra step in these
operations is needed to adjust the address to host virtual address.

This step, which is done in data-path affects performances.

An enhanced verion of MR registration introduced here
https://patchwork.kernel.org/patch/11044467/ can be used so that the
guest virtual address space for this MR is known to the HCA in host.

This will save the data-path adjustment.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Message-Id: <20190818132107.18181-3-yuval.shaia@oracle.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
hw/rdma/rdma_backend.c
hw/rdma/rdma_backend.h
hw/rdma/rdma_rm.c
hw/rdma/vmw/pvrdma_main.c