diff options
author | Li Zhijian <lizhijian@cn.fujitsu.com> | 2021-09-10 15:02:55 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2021-10-19 08:39:04 +0200 |
commit | 911965ace9386e35ca022a65bb45a32fd421af3e (patch) | |
tree | cac0f47717ae21a351c720847fedb41425a10263 /meson.build | |
parent | e2daccb0d0375717efed80b772e9fd1e4c51ae5b (diff) | |
download | qemu-911965ace9386e35ca022a65bb45a32fd421af3e.zip qemu-911965ace9386e35ca022a65bb45a32fd421af3e.tar.gz qemu-911965ace9386e35ca022a65bb45a32fd421af3e.tar.bz2 |
migration/rdma: advise prefetch write for ODP region
The responder mr registering with ODP will sent RNR NAK back to
the requester in the face of the page fault.
---------
ibv_poll_cq wc.status=13 RNR retry counter exceeded!
ibv_poll_cq wrid=WRITE RDMA!
---------
ibv_advise_mr(3) helps to make pages present before the actual IO is
conducted so that the responder does page fault as little as possible.
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 5e79467..9ed9a99 100644 --- a/meson.build +++ b/meson.build @@ -1530,6 +1530,12 @@ config_host_data.set('HAVE_COPY_FILE_RANGE', cc.has_function('copy_file_range')) config_host_data.set('HAVE_OPENPTY', cc.has_function('openpty', dependencies: util)) config_host_data.set('HAVE_STRCHRNUL', cc.has_function('strchrnul')) config_host_data.set('HAVE_SYSTEM_FUNCTION', cc.has_function('system', prefix: '#include <stdlib.h>')) +if rdma.found() + config_host_data.set('HAVE_IBV_ADVISE_MR', + cc.has_function('ibv_advise_mr', + args: config_host['RDMA_LIBS'].split(), + prefix: '#include <infiniband/verbs.h>')) +endif # has_header_symbol config_host_data.set('CONFIG_BYTESWAP_H', |