Re: [PATCH v11 11/12] vduse: Introduce VDUSE - vDPA Device in Userspace

From
Yongji Xie <hidden>
Date
2021-08-25 05:37:34
Also in
linux-fsdevel, linux-iommu, lkml, netdev
Reply to
Michael S. Tsirkin, 2021-08-24
On Wed, Aug 25, 2021 at 2:10 AM Michael S. Tsirkin [off-list ref] wrote:
On Wed, Aug 18, 2021 at 08:06:41PM +0800, Xie Yongji wrote:
quoted
This VDUSE driver enables implementing software-emulated vDPA
devices in userspace. The vDPA device is created by
ioctl(VDUSE_CREATE_DEV) on /dev/vduse/control. Then a char device
interface (/dev/vduse/$NAME) is exported to userspace for device
emulation.

In order to make the device emulation more secure, the device's
control path is handled in kernel. A message mechnism is introduced
to forward some dataplane related control messages to userspace.

And in the data path, the DMA buffer will be mapped into userspace
address space through different ways depending on the vDPA bus to
which the vDPA device is attached. In virtio-vdpa case, the MMU-based
software IOTLB is used to achieve that. And in vhost-vdpa case, the
DMA buffer is reside in a userspace memory region which can be shared
to the VDUSE userspace processs via transferring the shmfd.

For more details on VDUSE design and usage, please see the follow-on
Documentation commit.

Signed-off-by: Xie Yongji <redacted>
Build bot seems unhappy with this patch.
Yes, this is because the series relies on the unmerged patch:

https://lore.kernel.org/lkml/20210705071910.31965-1-jasowang@redhat.com/ (local)

Do I need to remove this dependency in the next version?

Thanks,
Yongji
Thread (32 messages) 32 messages, 6 authors, last reply 2021-08-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help