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

2022-06-17 Thread Maxime Coquelin
On 6/15/22 12:02, 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 start of

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

2022-06-15 Thread Yajun Wu
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 start of VAR. It's fine with x86 4K page server,