Re: [PATCH v2] vdpa/mlx5: workaround var offset within page

2022-06-14 Thread Maxime Coquelin
Hi Yajun, On 6/1/22 11:46, Maxime Coquelin wrote: On 6/1/22 09:55, Maxime Coquelin wrote: Hi Yajun, On 3/15/22 03:47, Yajun Wu wrote: vDPA driver first uses kernel driver to allocate doorbell(VAR) area for each device. Then uses var->mmap_off and var->length to mmap uverbs device file as

Re: [PATCH v2] vdpa/mlx5: workaround var offset within page

2022-06-01 Thread Maxime Coquelin
On 6/1/22 09:55, Maxime Coquelin wrote: Hi Yajun, On 3/15/22 03:47, Yajun Wu wrote: vDPA driver first uses kernel driver to allocate doorbell(VAR) area for each device. Then uses var->mmap_off and var->length to mmap uverbs device file as doorbell userspace virtual address. Current kernel

Re: [PATCH v2] vdpa/mlx5: workaround var offset within page

2022-06-01 Thread Maxime Coquelin
Hi Yajun, On 3/15/22 03:47, Yajun Wu wrote: vDPA driver first uses kernel driver to allocate doorbell(VAR) area for each device. Then uses var->mmap_off and var->length to mmap uverbs device file as doorbell userspace virtual address. Current kernel driver provides var->mmap_off equal to page s