[PATCH 0/2] enable fsdax rdma migration

Li Zhijian posted 2 patches 2 years, 9 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210731140332.8701-1-lizhijian@cn.fujitsu.com
Maintainers: "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Juan Quintela <quintela@redhat.com>
There is a newer version of this series
migration/rdma.c       | 67 ++++++++++++++++++++++++++++++++++++------
migration/trace-events |  2 ++
2 files changed, 60 insertions(+), 9 deletions(-)
[PATCH 0/2] enable fsdax rdma migration
Posted by Li Zhijian 2 years, 9 months ago
Previous qemu face 2 problems when migrating a fsdax memory backend with
RDMA protocol.
(1) ibv_reg_mr failed with Operation not supported
(2) requester(source) side could receive RNR NAK.

For the (1), we can try to register memory region with ODP feature which
has already been implemented in some modern HCA hardware/drivers.
For the (2), IB provides advise API to prefetch pages in specific memory
region. It can help driver reduce the page fault on responder(destination)
side during RDMA_WRITE.

Li Zhijian (2):
  migration/rdma: Try to register On-Demand Paging memory region
  migration/rdma: advise prefetch write for ODP region

 migration/rdma.c       | 67 ++++++++++++++++++++++++++++++++++++------
 migration/trace-events |  2 ++
 2 files changed, 60 insertions(+), 9 deletions(-)

-- 
2.31.1




Re: [PATCH 0/2] enable fsdax rdma migration
Posted by lizhijian@fujitsu.com 2 years, 8 months ago
ping...

Hey Dave, could you help to take a look :)

Thanks
Zhijian


On 31/07/2021 22:03, Li Zhijian wrote:
> Previous qemu face 2 problems when migrating a fsdax memory backend with
> RDMA protocol.
> (1) ibv_reg_mr failed with Operation not supported
> (2) requester(source) side could receive RNR NAK.
>
> For the (1), we can try to register memory region with ODP feature which
> has already been implemented in some modern HCA hardware/drivers.
> For the (2), IB provides advise API to prefetch pages in specific memory
> region. It can help driver reduce the page fault on responder(destination)
> side during RDMA_WRITE.
>
> Li Zhijian (2):
>    migration/rdma: Try to register On-Demand Paging memory region
>    migration/rdma: advise prefetch write for ODP region
>
>   migration/rdma.c       | 67 ++++++++++++++++++++++++++++++++++++------
>   migration/trace-events |  2 ++
>   2 files changed, 60 insertions(+), 9 deletions(-)
>