Re: [PATCH v13 00/13] Introduce VDUSE - vDPA Device in Userspace

Yongji Xie
2021-10-11T08:32:58Z

On Mon, Oct 11, 2021 at 4:31 PM Yongji Xie <xieyongji@bytedance.com> wrote:
>
> Hi Xiaodong,
>
> On Mon, Oct 11, 2021 at 3:32 PM Liuxiangdong <liuxiangdong5@huawei.com> wrote:
> >
> > Hi, Yongji.
> >
> > I tried vduse with null-blk:
> >
> > $ qemu-storage-daemon \
> > --chardev socket,id=charmonitor,path=/tmp/qmp.sock,server,nowait \
> > --monitor chardev=charmonitor \
> > --blockdev
> > driver=host_device,cache.direct=on,aio=native,filename=/dev/nullb0,node-name=disk0
> > \
> > --export
> > type=vduse-blk,id=test,node-name=disk0,writable=on,name=vduse-null,num-queues=16,queue-size=128
> >
> > The qemu-storage-daemon is yours
> > (https://github.com/bytedance/qemu/tree/vduse)
> >
> > And then, how can we use this vduse-null (dev/vduse/vduse-null) in vm(QEMU)?
> >
>
> Then we need to attach this device to vdpa bus via vdpa tool [1]:
>
> # vdpa dev add vduse-null mgmtdev vduse
>

It should be:

# vdpa dev add name vduse-null mgmtdev vduse

Thanks,
Yongji