[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f419a24-cd53-bd73-5b8a-8ab5d976a490@redhat.com>
Date: Tue, 26 Jan 2021 16:19:25 +0800
From: Jason Wang <jasowang@...hat.com>
To: Xie Yongji <xieyongji@...edance.com>, mst@...hat.com,
stefanha@...hat.com, sgarzare@...hat.com, parav@...dia.com,
bob.liu@...cle.com, hch@...radead.org, rdunlap@...radead.org,
willy@...radead.org, viro@...iv.linux.org.uk, axboe@...nel.dk,
bcrl@...ck.org, corbet@....net
Cc: virtualization@...ts.linux-foundation.org, netdev@...r.kernel.org,
kvm@...r.kernel.org, linux-aio@...ck.org,
linux-fsdevel@...r.kernel.org
Subject: Re: [RFC v3 08/11] vduse: Introduce VDUSE - vDPA Device in Userspace
On 2021/1/19 下午1:07, Xie Yongji wrote:
> This VDUSE driver enables implementing vDPA devices in userspace.
> Both control path and data path of vDPA devices will be able to
> be handled in userspace.
>
> In the control path, the VDUSE driver will make use of message
> mechnism to forward the config operation from vdpa bus driver
> to userspace. Userspace can use read()/write() to receive/reply
> those control messages.
>
> In the data path, VDUSE_IOTLB_GET_FD ioctl will be used to get
> the file descriptors referring to vDPA device's iova regions. Then
> userspace can use mmap() to access those iova regions. Besides,
> the eventfd mechanism is used to trigger interrupt callbacks and
> receive virtqueue kicks in userspace.
>
> Signed-off-by: Xie Yongji<xieyongji@...edance.com>
> ---
> Documentation/driver-api/vduse.rst | 85 ++
> Documentation/userspace-api/ioctl/ioctl-number.rst | 1 +
> drivers/vdpa/Kconfig | 7 +
> drivers/vdpa/Makefile | 1 +
> drivers/vdpa/vdpa_user/Makefile | 5 +
> drivers/vdpa/vdpa_user/eventfd.c | 221 ++++
> drivers/vdpa/vdpa_user/eventfd.h | 48 +
> drivers/vdpa/vdpa_user/iova_domain.c | 426 +++++++
> drivers/vdpa/vdpa_user/iova_domain.h | 68 ++
> drivers/vdpa/vdpa_user/vduse.h | 62 +
> drivers/vdpa/vdpa_user/vduse_dev.c | 1217 ++++++++++++++++++++
> include/uapi/linux/vdpa.h | 1 +
> include/uapi/linux/vduse.h | 125 ++
> 13 files changed, 2267 insertions(+)
> create mode 100644 Documentation/driver-api/vduse.rst
> create mode 100644 drivers/vdpa/vdpa_user/Makefile
> create mode 100644 drivers/vdpa/vdpa_user/eventfd.c
> create mode 100644 drivers/vdpa/vdpa_user/eventfd.h
> create mode 100644 drivers/vdpa/vdpa_user/iova_domain.c
> create mode 100644 drivers/vdpa/vdpa_user/iova_domain.h
> create mode 100644 drivers/vdpa/vdpa_user/vduse.h
> create mode 100644 drivers/vdpa/vdpa_user/vduse_dev.c
> create mode 100644 include/uapi/linux/vduse.h
Btw, if you could split this into three parts:
1) iova domain
2) vduse device
3) doc
It would be more easier for the reviewers.
Thanks
Powered by blists - more mailing lists