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

2022-01-11 Thread Yongji Xie
On Tue, Jan 11, 2022 at 7:54 PM Michael S. Tsirkin wrote: > > On Tue, Jan 11, 2022 at 11:31:37AM +0800, Yongji Xie wrote: > > On Mon, Jan 10, 2022 at 11:44 PM Michael S. Tsirkin wrote: > > > > > > On Mon, Jan 10, 2022 at 11:24:40PM +0800, Yongji Xie wrote: > &g

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

2022-01-10 Thread Yongji Xie
On Mon, Jan 10, 2022 at 11:44 PM Michael S. Tsirkin wrote: > > On Mon, Jan 10, 2022 at 11:24:40PM +0800, Yongji Xie wrote: > > On Mon, Jan 10, 2022 at 11:10 PM Michael S. Tsirkin wrote: > > > > > > On Mon, Jan 10, 2022 at 09:54:08PM +0800, Yongji Xie wrote: > &

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

2022-01-10 Thread Yongji Xie
On Mon, Jan 10, 2022 at 11:10 PM Michael S. Tsirkin wrote: > > On Mon, Jan 10, 2022 at 09:54:08PM +0800, Yongji Xie wrote: > > On Mon, Jan 10, 2022 at 8:57 PM Michael S. Tsirkin wrote: > > > > > > On Mon, Aug 30, 2021 at 10:17:24PM +0800, Xie Yongji wrote:

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

2022-01-10 Thread Yongji Xie
On Mon, Jan 10, 2022 at 8:57 PM Michael S. Tsirkin wrote: > > On Mon, Aug 30, 2021 at 10:17:24PM +0800, Xie Yongji wrote: > > This series introduces a framework that makes it possible to implement > > software-emulated vDPA devices in userspace. And to make the device > > emulation more secure,

Re: [PATCH 1/5] iova: Move fast alloc size roundup into alloc_iova_fast()

2021-10-08 Thread Yongji Xie
On Sat, Oct 9, 2021 at 12:17 AM John Garry wrote: > > On 04/10/2021 12:31, Will Deacon wrote: > > On Fri, Sep 24, 2021 at 06:01:53PM +0800, John Garry wrote: > >> It really is a property of the IOVA rcache code that we need to alloc a > >> power-of-2 size, so relocate the functionality to resize

Re: [PATCH v13 05/13] vdpa: Add reset callback in vdpa_config_ops

2021-09-06 Thread Yongji Xie
On Mon, Sep 6, 2021 at 6:43 PM Michael S. Tsirkin wrote: > > On Mon, Sep 06, 2021 at 04:45:55PM +0800, Yongji Xie wrote: > > On Mon, Sep 6, 2021 at 4:01 PM Michael S. Tsirkin wrote: > > > > > > On Mon, Sep 06, 2021 at 03:06:44PM +0800, Yongji Xie wrote: > >

Re: [PATCH v13 05/13] vdpa: Add reset callback in vdpa_config_ops

2021-09-06 Thread Yongji Xie
On Mon, Sep 6, 2021 at 4:01 PM Michael S. Tsirkin wrote: > > On Mon, Sep 06, 2021 at 03:06:44PM +0800, Yongji Xie wrote: > > On Mon, Sep 6, 2021 at 2:37 PM Michael S. Tsirkin wrote: > > > > > > On Mon, Sep 06, 2021 at 02:09:25PM +0800, Yongji Xie wrote: > >

Re: [PATCH v13 05/13] vdpa: Add reset callback in vdpa_config_ops

2021-09-06 Thread Yongji Xie
On Mon, Sep 6, 2021 at 2:37 PM Michael S. Tsirkin wrote: > > On Mon, Sep 06, 2021 at 02:09:25PM +0800, Yongji Xie wrote: > > On Mon, Sep 6, 2021 at 1:56 PM Michael S. Tsirkin wrote: > > > > > > On Tue, Aug 31, 2021 at 06:36:26PM +0800, Xie Yongji wrote: &g

Re: [PATCH v13 05/13] vdpa: Add reset callback in vdpa_config_ops

2021-09-06 Thread Yongji Xie
On Mon, Sep 6, 2021 at 1:56 PM Michael S. Tsirkin wrote: > > On Tue, Aug 31, 2021 at 06:36:26PM +0800, Xie Yongji wrote: > > This adds a new callback to support device specific reset > > behavior. The vdpa bus driver will call the reset function > > instead of setting status to zero during

Re: [PATCH v11 10/12] vduse: Implement an MMU-based software IOTLB

2021-08-27 Thread Yongji Xie
On Fri, Aug 27, 2021 at 4:53 PM John Garry wrote: > > On 18/08/2021 13:06, Xie Yongji wrote: > > + > > +static dma_addr_t > > +vduse_domain_alloc_iova(struct iova_domain *iovad, > > + unsigned long size, unsigned long limit) > > +{ > > + unsigned long shift =

Re: [PATCH v11 01/12] iova: Export alloc_iova_fast() and free_iova_fast()

2021-08-25 Thread Yongji Xie
On Wed, Aug 25, 2021 at 6:35 PM John Garry wrote: > > On 25/08/2021 10:55, Will Deacon wrote: > > On Tue, Aug 24, 2021 at 02:08:33PM -0400, Michael S. Tsirkin wrote: > >> On Wed, Aug 18, 2021 at 08:06:31PM +0800, Xie Yongji wrote: > >>> Export alloc_iova_fast() and free_iova_fast() so that > >>>

Re: [PATCH] eventfd: Enlarge recursion limit to allow vhost to work

2021-08-25 Thread Yongji Xie
Hi guys, Is there any comments or update for this patch? Thanks, Yongji On Fri, Jun 18, 2021 at 4:47 PM He Zhe wrote: > > commit b5e683d5cab8 ("eventfd: track eventfd_signal() recursion depth") > introduces a percpu counter that tracks the percpu recursion depth and > warn if it greater than

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

2021-08-24 Thread Yongji Xie
On Wed, Aug 25, 2021 at 2:10 AM Michael S. Tsirkin wrote: > > On Wed, Aug 18, 2021 at 08:06:41PM +0800, Xie Yongji wrote: > > 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.

Re: [PATCH v11 04/12] vdpa: Add reset callback in vdpa_config_ops

2021-08-23 Thread Yongji Xie
On Mon, Aug 23, 2021 at 2:31 PM Jason Wang wrote: > > > 在 2021/8/18 下午8:06, Xie Yongji 写道: > > This adds a new callback to support device specific reset > > behavior. The vdpa bus driver will call the reset function > > instead of setting status to zero during resetting if device > > driver

Re: [PATCH v10 01/17] iova: Export alloc_iova_fast() and free_iova_fast()

2021-08-10 Thread Yongji Xie
On Tue, Aug 10, 2021 at 11:02 AM Jason Wang wrote: > > > 在 2021/8/9 下午1:56, Yongji Xie 写道: > > On Thu, Aug 5, 2021 at 9:31 PM Jason Wang wrote: > >> > >> 在 2021/8/5 下午8:34, Yongji Xie 写道: > >>>> My main point, though, is that if you've

Re: [PATCH v10 01/17] iova: Export alloc_iova_fast() and free_iova_fast()

2021-08-05 Thread Yongji Xie
On Wed, Aug 4, 2021 at 11:43 PM Robin Murphy wrote: > > On 2021-08-04 06:02, Yongji Xie wrote: > > On Tue, Aug 3, 2021 at 6:54 PM Robin Murphy wrote: > >> > >> On 2021-08-03 09:54, Yongji Xie wrote: > >>> On Tue, Aug 3, 2021 at 3:41 PM Jason Wang wrot

Re: [PATCH v10 10/17] virtio: Handle device reset failure in register_virtio_device()

2021-08-04 Thread Yongji Xie
On Wed, Aug 4, 2021 at 4:54 PM Jason Wang wrote: > > > 在 2021/8/4 下午4:50, Yongji Xie 写道: > > On Wed, Aug 4, 2021 at 4:32 PM Jason Wang wrote: > >> > >> 在 2021/8/3 下午5:38, Yongji Xie 写道: > >>> On Tue, Aug 3, 2021 at 4:09 PM Jason Wang wr

Re: [PATCH v10 10/17] virtio: Handle device reset failure in register_virtio_device()

2021-08-04 Thread Yongji Xie
On Wed, Aug 4, 2021 at 4:32 PM Jason Wang wrote: > > > 在 2021/8/3 下午5:38, Yongji Xie 写道: > > On Tue, Aug 3, 2021 at 4:09 PM Jason Wang wrote: > >> > >> 在 2021/7/29 下午3:34, Xie Yongji 写道: > >>> The device reset may fail in virtio-vdpa case now, so

Re: [PATCH v10 01/17] iova: Export alloc_iova_fast() and free_iova_fast()

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 6:54 PM Robin Murphy wrote: > > On 2021-08-03 09:54, Yongji Xie wrote: > > On Tue, Aug 3, 2021 at 3:41 PM Jason Wang wrote: > >> > >> > >> 在 2021/7/29 下午3:34, Xie Yongji 写道: > >>> Export alloc_iova_fast() and

Re: [PATCH v10 05/17] vhost-vdpa: Fail the vhost_vdpa_set_status() on reset failure

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 4:10 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:34, Xie Yongji 写道: > > Re-read the device status to ensure it's set to zero during > > resetting. Otherwise, fail the vhost_vdpa_set_status() after timeout. > > > > Signed-off-by: Xie Yongji > > --- > > drivers/vhost/vdpa.c

Re: [PATCH v10 10/17] virtio: Handle device reset failure in register_virtio_device()

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 4:09 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:34, Xie Yongji 写道: > > The device reset may fail in virtio-vdpa case now, so add checks to > > its return value and fail the register_virtio_device(). > > > So the reset() would be called by the driver during remove as well,

Re: [PATCH v10 04/17] vdpa: Fail the vdpa_reset() if fail to set device status to zero

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 3:58 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:34, Xie Yongji 写道: > > Re-read the device status to ensure it's set to zero during > > resetting. Otherwise, fail the vdpa_reset() after timeout. > > > > Signed-off-by: Xie Yongji > > --- > > include/linux/vdpa.h | 15

Re: [PATCH v10 07/17] virtio: Don't set FAILED status bit on device index allocation failure

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 4:03 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:34, Xie Yongji 写道: > > We don't need to set FAILED status bit on device index allocation > > failure since the device initialization hasn't been started yet. > > This doesn't affect runtime, found in code review. > > > >

Re: [PATCH v10 03/17] vdpa: Fix code indentation

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 3:51 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:34, Xie Yongji 写道: > > Use tabs to indent the code instead of spaces. > > > > Signed-off-by: Xie Yongji > > --- > > include/linux/vdpa.h | 29 ++--- > > 1 file changed, 14 insertions(+), 15

Re: [PATCH v10 02/17] file: Export receive_fd() to modules

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 3:46 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:34, Xie Yongji 写道: > > Export receive_fd() so that some modules can use > > it to pass file descriptor between processes without > > missing any security stuffs. > > > > Signed-off-by: Xie Yongji > > --- > > fs/file.c

Re: [PATCH v10 01/17] iova: Export alloc_iova_fast() and free_iova_fast()

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 3:41 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:34, Xie Yongji 写道: > > Export alloc_iova_fast() and free_iova_fast() so that > > some modules can use it to improve iova allocation efficiency. > > > It's better to explain why alloc_iova() is not sufficient here. > Fine.

Re: [PATCH v10 17/17] Documentation: Add documentation for VDUSE

2021-08-03 Thread Yongji Xie
On Tue, Aug 3, 2021 at 3:35 PM Jason Wang wrote: > > > 在 2021/7/29 下午3:35, Xie Yongji 写道: > > VDUSE (vDPA Device in Userspace) is a framework to support > > implementing software-emulated vDPA devices in userspace. This > > document is intended to clarify the VDUSE design and usage. > > > >

Re: [PATCH v10 16/17] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-08-03 Thread Yongji Xie
dpa/vdpa_user/vduse_dev.c > > b/drivers/vdpa/vdpa_user/vduse_dev.c > > new file mode 100644 > > index ..6addc62e7de6 > > --- /dev/null > > +++ b/drivers/vdpa/vdpa_user/vduse_dev.c > > @@ -0,0 +1,1541 @@ > > +// SPDX-License-Identifier: GPL-2.0-onl

Re: [PATCH v10 16/17] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-07-29 Thread Yongji Xie
On Thu, Jul 29, 2021 at 5:00 PM Greg KH wrote: > > On Thu, Jul 29, 2021 at 03:35:02PM +0800, Xie Yongji wrote: > > +/* > > + * The basic configuration of a VDUSE device, which is used by > > + * VDUSE_CREATE_DEV ioctl to create a VDUSE device. > > + */ > > +struct vduse_dev_config { > > Please

Re: [PATCH v9 17/17] Documentation: Add documentation for VDUSE

2021-07-15 Thread Yongji Xie
On Thu, Jul 15, 2021 at 1:18 PM Jason Wang wrote: > > > 在 2021/7/13 下午4:46, Xie Yongji 写道: > > VDUSE (vDPA Device in Userspace) is a framework to support > > implementing software-emulated vDPA devices in userspace. This > > document is intended to clarify the VDUSE design and usage. > > > >

Re: [PATCH v9 16/17] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-07-14 Thread Yongji Xie
On Wed, Jul 14, 2021 at 5:12 PM Jason Wang wrote: > > > 在 2021/7/14 下午2:49, Yongji Xie 写道: > > On Wed, Jul 14, 2021 at 1:45 PM Jason Wang wrote: > >> > >> 在 2021/7/13 下午4:46, Xie Yongji 写道: > >>> This VDUSE driver enables implementing software-emula

Re: [PATCH v9 16/17] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-07-14 Thread Yongji Xie
dpa/vdpa_user/vduse_dev.c > > b/drivers/vdpa/vdpa_user/vduse_dev.c > > new file mode 100644 > > index ..c994a4a4660c > > --- /dev/null > > +++ b/drivers/vdpa/vdpa_user/vduse_dev.c > > @@ -0,0 +1,1502 @@ > > +// SPDX-License-Identifier: GPL-2.0-only &

Re: [PATCH v9 03/17] vdpa: Fix code indentation

2021-07-13 Thread Yongji Xie
On Wed, Jul 14, 2021 at 12:20 PM Joe Perches wrote: > > On Tue, 2021-07-13 at 16:46 +0800, Xie Yongji wrote: > > Use tabs to indent the code instead of spaces. > > There are a lot more of these in this file. > > $ ./scripts/checkpatch.pl --fix-inplace --strict include/linux/vdpa.h > > and a

Re: [PATCH v9 16/17] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-07-13 Thread Yongji Xie
On Wed, Jul 14, 2021 at 10:54 AM Jason Wang wrote: > > > 在 2021/7/13 下午9:27, Dan Carpenter 写道: > > On Tue, Jul 13, 2021 at 04:46:55PM +0800, Xie Yongji wrote: > >> +static int vduse_dev_init_vdpa(struct vduse_dev *dev, const char *name) > >> +{ > >> +struct vduse_vdpa *vdev; > >> +int

Re: [PATCH v9 13/17] vdpa: factor out vhost_vdpa_pa_map() and vhost_vdpa_pa_unmap()

2021-07-13 Thread Yongji Xie
On Tue, Jul 13, 2021 at 7:31 PM Dan Carpenter wrote: > > On Tue, Jul 13, 2021 at 04:46:52PM +0800, Xie Yongji wrote: > > @@ -613,37 +618,28 @@ static void vhost_vdpa_unmap(struct vhost_vdpa *v, > > u64 iova, u64 size) > > } > > } > > > > -static int vhost_vdpa_process_iotlb_update(struct

Re: [PATCH v9 07/17] virtio: Don't set FAILED status bit on device index allocation failure

2021-07-13 Thread Yongji Xie
On Tue, Jul 13, 2021 at 7:02 PM Dan Carpenter wrote: > > On Tue, Jul 13, 2021 at 04:46:46PM +0800, Xie Yongji wrote: > > We don't need to set FAILED status bit on device index allocation > > failure since the device initialization hasn't been started yet. > > The commit message should say what

Re: [PATCH v8 10/10] Documentation: Add documentation for VDUSE

2021-07-08 Thread Yongji Xie
t; > > On Tue, Jul 6, 2021 at 6:15 PM Stefan Hajnoczi > > > > > > > > wrote: > > > > > > > > > On Tue, Jul 06, 2021 at 10:34:33AM +0800, Jason Wang wrote: > > > > > > > > > > 在 2021/7/5 下午8:49, Stefan Hajnoczi 写道:

Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-07-07 Thread Yongji Xie
On Wed, Jul 7, 2021 at 4:53 PM Stefan Hajnoczi wrote: > > On Tue, Jun 15, 2021 at 10:13:30PM +0800, Xie Yongji wrote: > > +static bool vduse_validate_config(struct vduse_dev_config *config) > > +{ > > The name field needs to be NUL terminated? > I think so. > > + case VDUSE_CREATE_DEV: { >

Re: [PATCH v8 10/10] Documentation: Add documentation for VDUSE

2021-07-07 Thread Yongji Xie
On Tue, Jul 6, 2021 at 6:22 PM Stefan Hajnoczi wrote: > > On Tue, Jul 06, 2021 at 11:04:18AM +0800, Yongji Xie wrote: > > On Mon, Jul 5, 2021 at 8:50 PM Stefan Hajnoczi wrote: > > > > > > On Mon, Jul 05, 2021 at 11:36:15AM +0800, Jason Wang wrote: > > > >

Re: [PATCH v8 10/10] Documentation: Add documentation for VDUSE

2021-07-05 Thread Yongji Xie
On Mon, Jul 5, 2021 at 8:50 PM Stefan Hajnoczi wrote: > > On Mon, Jul 05, 2021 at 11:36:15AM +0800, Jason Wang wrote: > > > > 在 2021/7/4 下午5:49, Yongji Xie 写道: > > > > > OK, I get you now. Since the VIRTIO specification says "Device > > > >

Re: Re: Re: [PATCH v8 10/10] Documentation: Add documentation for VDUSE

2021-07-04 Thread Yongji Xie
On Thu, Jul 1, 2021 at 9:15 PM Stefan Hajnoczi wrote: > > On Thu, Jul 01, 2021 at 06:00:48PM +0800, Yongji Xie wrote: > > On Wed, Jun 30, 2021 at 6:06 PM Stefan Hajnoczi wrote: > > > > > > On Tue, Jun 29, 2021 at 01:43:11PM +0800, Yongji Xie wrote: > > > &

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-07-01 Thread Yongji Xie
On Thu, Jul 1, 2021 at 3:55 PM Jason Wang wrote: > > > 在 2021/7/1 下午2:50, Yongji Xie 写道: > > On Wed, Jun 30, 2021 at 5:51 PM Stefan Hajnoczi wrote: > >> On Tue, Jun 29, 2021 at 10:59:51AM +0800, Yongji Xie wrote: > >>> On Mon, Jun 28, 2021 at 9:02 PM Stefan H

Re: Re: Re: [PATCH v8 10/10] Documentation: Add documentation for VDUSE

2021-07-01 Thread Yongji Xie
On Wed, Jun 30, 2021 at 6:06 PM Stefan Hajnoczi wrote: > > On Tue, Jun 29, 2021 at 01:43:11PM +0800, Yongji Xie wrote: > > On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > > On Tue, Jun 15, 2021 at 10:13:31PM +0800, Xie Yongji wrote: > > > > + s

Re: Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-07-01 Thread Yongji Xie
On Wed, Jun 30, 2021 at 5:51 PM Stefan Hajnoczi wrote: > > On Tue, Jun 29, 2021 at 10:59:51AM +0800, Yongji Xie wrote: > > On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > > > > > On Tue, Jun 15, 2021 at 10:13:30PM +0800, Xie Yo

Re: RE: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-29 Thread Yongji Xie
On Tue, Jun 29, 2021 at 3:56 PM Liu, Xiaodong wrote: > > > > >-Original Message- > >From: Jason Wang > >Sent: Tuesday, June 29, 2021 12:11 PM > >To: Liu, Xiaodong ; Xie Yongji > >; m...@redhat.com; stefa...@redhat.com; > >sgarz...@redhat.com; pa...@nvidia.com; h...@infradead.org; >

Re: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-29 Thread Yongji Xie
On Tue, Jun 29, 2021 at 12:13 PM Jason Wang wrote: > > > 在 2021/6/28 下午6:32, Yongji Xie 写道: > >> The large barrier is bounce-buffer mapping: SPDK requires hugepages > >> for NVMe over PCIe and RDMA, so take some preallcoated hugepages to > >> map as boun

Re: Re: [PATCH v8 10/10] Documentation: Add documentation for VDUSE

2021-06-28 Thread Yongji Xie
On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > On Tue, Jun 15, 2021 at 10:13:31PM +0800, Xie Yongji wrote: > > VDUSE (vDPA Device in Userspace) is a framework to support > > implementing software-emulated vDPA devices in userspace. This > > document is intended to clarify the VDUSE

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Yongji Xie
On Tue, Jun 29, 2021 at 11:29 AM Jason Wang wrote: > > > 在 2021/6/29 上午10:26, Yongji Xie 写道: > > On Mon, Jun 28, 2021 at 12:40 PM Jason Wang wrote: > >> > >> 在 2021/6/25 下午12:19, Yongji Xie 写道: > >>>> 2b) for set_status(): simply relay the

Re: Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Yongji Xie
On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > On Tue, Jun 15, 2021 at 10:13:21PM +0800, Xie Yongji wrote: > > This series introduces a framework that makes it possible to implement > > software-emulated vDPA devices in userspace. And to make it simple, the > > emulated vDPA device's

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Yongji Xie
On Mon, Jun 28, 2021 at 9:02 PM Stefan Hajnoczi wrote: > > On Tue, Jun 15, 2021 at 10:13:30PM +0800, Xie Yongji wrote: > > diff --git a/include/uapi/linux/vduse.h b/include/uapi/linux/vduse.h > > new file mode 100644 > > index ..f21b2e51b5c8 > > --- /dev/null > > +++

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Yongji Xie
On Mon, Jun 28, 2021 at 12:40 PM Jason Wang wrote: > > > 在 2021/6/25 下午12:19, Yongji Xie 写道: > >> 2b) for set_status(): simply relay the message to userspace, reply is no > >> needed. Userspace will use a command to update the status when the > >> datapath is s

Re: [PATCH v8 00/10] Introduce VDUSE - vDPA Device in Userspace

2021-06-28 Thread Yongji Xie
On Mon, 28 Jun 2021 at 10:55, Liu Xiaodong wrote: > > On Tue, Jun 15, 2021 at 10:13:21PM +0800, Xie Yongji wrote: > > > > This series introduces a framework that makes it possible to implement > > software-emulated vDPA devices in userspace. And to make it simple, the > > emulated vDPA device's

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-24 Thread Yongji Xie
On Fri, Jun 25, 2021 at 11:09 AM Jason Wang wrote: > > > 在 2021/6/24 下午5:16, Yongji Xie 写道: > > On Thu, Jun 24, 2021 at 4:14 PM Jason Wang wrote: > >> > >> 在 2021/6/24 下午12:46, Yongji Xie 写道: > >>>> So we need to deal with both FEATURES

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-24 Thread Yongji Xie
On Thu, Jun 24, 2021 at 4:14 PM Jason Wang wrote: > > > 在 2021/6/24 下午12:46, Yongji Xie 写道: > >> So we need to deal with both FEATURES_OK and reset, but probably not > >> DRIVER_OK. > >> > > OK, I see. Thanks for the explanation. One more question i

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-23 Thread Yongji Xie
On Thu, Jun 24, 2021 at 11:35 AM Jason Wang wrote: > > > 在 2021/6/23 下午1:50, Yongji Xie 写道: > > On Wed, Jun 23, 2021 at 11:31 AM Jason Wang wrote: > >> > >> 在 2021/6/22 下午4:14, Yongji Xie 写道: > >>> On Tue, Jun 22, 2021 at 3:50 PM Jason Wang wr

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-22 Thread Yongji Xie
On Wed, Jun 23, 2021 at 11:31 AM Jason Wang wrote: > > > 在 2021/6/22 下午4:14, Yongji Xie 写道: > > On Tue, Jun 22, 2021 at 3:50 PM Jason Wang wrote: > >> > >> 在 2021/6/22 下午3:22, Yongji Xie 写道: > >>>> We need fix a way to propagate the error to the

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-22 Thread Yongji Xie
On Tue, Jun 22, 2021 at 3:50 PM Jason Wang wrote: > > > 在 2021/6/22 下午3:22, Yongji Xie 写道: > >> We need fix a way to propagate the error to the userspace. > >> > >> E.g if we want to stop the deivce, we will delay the status reset until > >> we get

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-22 Thread Yongji Xie
.On Tue, Jun 22, 2021 at 1:07 PM Jason Wang wrote: > > > 在 2021/6/21 下午6:41, Yongji Xie 写道: > > On Mon, Jun 21, 2021 at 5:14 PM Jason Wang wrote: > >> > >> 在 2021/6/15 下午10:13, Xie Yongji 写道: > >>> This VDUSE driver enables implementing vDPA devices

Re: Re: [PATCH v8 09/10] vduse: Introduce VDUSE - vDPA Device in Userspace

2021-06-21 Thread Yongji Xie
r/vduse_dev.c > > b/drivers/vdpa/vdpa_user/vduse_dev.c > > new file mode 100644 > > index ..5271cbd15e28 > > --- /dev/null > > +++ b/drivers/vdpa/vdpa_user/vduse_dev.c > > @@ -0,0 +1,1453 @@ > > +// SPDX-License-Identifier: GPL-2.0-only > > +/*

Re: Re: [PATCH v8 03/10] eventfd: Increase the recursion depth of eventfd_signal()

2021-06-17 Thread Yongji Xie
On Thu, Jun 17, 2021 at 4:34 PM He Zhe wrote: > > > > On 6/15/21 10:13 PM, Xie Yongji wrote: > > Increase the recursion depth of eventfd_signal() to 1. This > > is the maximum recursion depth we have found so far, which > > can be triggered with the following call chain: > > > >

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

2021-05-31 Thread Yongji Xie
On Mon, May 31, 2021 at 2:32 PM Greg KH wrote: > > On Mon, May 31, 2021 at 02:19:37PM +0800, Yongji Xie wrote: > > Hi Greg, > > > > Thanks a lot for the review! > > > > On Mon, May 31, 2021 at 12:56 PM Greg KH wrote: > > > > > > On M

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

2021-05-31 Thread Yongji Xie
On Mon, May 31, 2021 at 12:39 PM Jason Wang wrote: > > > 在 2021/5/31 下午12:27, Yongji Xie 写道: > > On Fri, May 28, 2021 at 10:31 AM Jason Wang wrote: > >> > >> 在 2021/5/27 下午9:17, Yongji Xie 写道: > >>> On Thu, May 27, 2021 at 4:41 PM Jason Wang wr

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

2021-05-31 Thread Yongji Xie
Hi Greg, Thanks a lot for the review! On Mon, May 31, 2021 at 12:56 PM Greg KH wrote: > > On Mon, May 17, 2021 at 05:55:12PM +0800, Xie Yongji wrote: > > +struct vduse_dev { > > + struct vduse_vdpa *vdev; > > + struct device dev; > > + struct cdev cdev; > > You now have 2 reference

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

2021-05-30 Thread Yongji Xie
On Fri, May 28, 2021 at 10:31 AM Jason Wang wrote: > > > 在 2021/5/27 下午9:17, Yongji Xie 写道: > > On Thu, May 27, 2021 at 4:41 PM Jason Wang wrote: > >> > >> 在 2021/5/27 下午3:34, Yongji Xie 写道: > >>> On Thu, May 27, 2021 at 1:40 PM Jason Wang wr

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

2021-05-27 Thread Yongji Xie
On Fri, May 28, 2021 at 9:33 AM Jason Wang wrote: > > > 在 2021/5/27 下午6:14, Yongji Xie 写道: > > On Thu, May 27, 2021 at 4:43 PM Jason Wang wrote: > >> > >> 在 2021/5/27 下午4:41, Jason Wang 写道: > >>> 在 2021/5/27 下午3:34, Yongji Xie 写道: > >&g

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

2021-05-27 Thread Yongji Xie
On Thu, May 27, 2021 at 4:41 PM Jason Wang wrote: > > > 在 2021/5/27 下午3:34, Yongji Xie 写道: > > On Thu, May 27, 2021 at 1:40 PM Jason Wang wrote: > >> > >> 在 2021/5/27 下午1:08, Yongji Xie 写道: > >>> On Thu, May 27, 2021 at 1:00 PM Jason Wang wro

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

2021-05-27 Thread Yongji Xie
On Thu, May 27, 2021 at 4:43 PM Jason Wang wrote: > > > 在 2021/5/27 下午4:41, Jason Wang 写道: > > > > 在 2021/5/27 下午3:34, Yongji Xie 写道: > >> On Thu, May 27, 2021 at 1:40 PM Jason Wang wrote: > >>> > >>> 在 2021/5/27 下午1:08, Yongji Xie

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

2021-05-27 Thread Yongji Xie
On Thu, May 27, 2021 at 1:40 PM Jason Wang wrote: > > > 在 2021/5/27 下午1:08, Yongji Xie 写道: > > On Thu, May 27, 2021 at 1:00 PM Jason Wang wrote: > >> > >> 在 2021/5/27 下午12:57, Yongji Xie 写道: > >>> On Thu, May 27, 2021 at 12:13 PM Jason Wang wr

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

2021-05-26 Thread Yongji Xie
On Thu, May 27, 2021 at 1:00 PM Jason Wang wrote: > > > 在 2021/5/27 下午12:57, Yongji Xie 写道: > > On Thu, May 27, 2021 at 12:13 PM Jason Wang wrote: > >> > >> 在 2021/5/17 下午5:55, Xie Yongji 写道: > >>> + > >>

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

2021-05-26 Thread Yongji Xie
On Thu, May 27, 2021 at 12:13 PM Jason Wang wrote: > > > 在 2021/5/17 下午5:55, Xie Yongji 写道: > > + > > +static int vduse_dev_msg_sync(struct vduse_dev *dev, > > + struct vduse_dev_msg *msg) > > +{ > > + init_waitqueue_head(>waitq); > > + spin_lock(>msg_lock); > >

Re: Re: [PATCH v7 01/12] iova: Export alloc_iova_fast()

2021-05-25 Thread Yongji Xie
On Wed, May 26, 2021 at 10:36 AM Jason Wang wrote: > > > 在 2021/5/17 下午5:55, Xie Yongji 写道: > > Export alloc_iova_fast() so that some modules can use it > > to improve iova allocation efficiency. > > > > Signed-off-by: Xie Yongji > > --- > > drivers/iommu/iova.c | 1 + > > 1 file changed, 1

Re: Re: [PATCH v7 00/12] Introduce VDUSE - vDPA Device in Userspace

2021-05-20 Thread Yongji Xie
On Thu, May 20, 2021 at 2:06 PM Michael S. Tsirkin wrote: > > On Mon, May 17, 2021 at 05:55:01PM +0800, Xie Yongji wrote: > > This series introduces a framework, which can be used to implement > > vDPA Devices in a userspace program. The work consist of two parts: > > control path forwarding and

Re: Re: Re: [PATCH v7 04/12] virtio-blk: Add validation for block size in config space

2021-05-20 Thread Yongji Xie
On Thu, May 20, 2021 at 1:43 PM Michael S. Tsirkin wrote: > > On Thu, May 20, 2021 at 01:25:16PM +0800, Yongji Xie wrote: > > On Wed, May 19, 2021 at 10:42 PM Dan Carpenter > > wrote: > > > > > > On Wed, May 19, 2021 at 09:39:20PM +0800, Yongji Xie wrote: >

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

2021-05-20 Thread Yongji Xie
On Thu, May 20, 2021 at 2:28 PM Al Viro wrote: > > On Mon, May 17, 2021 at 05:55:12PM +0800, Xie Yongji wrote: > > > + case VDUSE_IOTLB_GET_FD: { > > + struct vduse_iotlb_entry entry; > > + struct vhost_iotlb_map *map; > > + struct vdpa_map_file *map_file;

Re: Re: [PATCH v7 02/12] file: Export receive_fd() to modules

2021-05-20 Thread Yongji Xie
On Thu, May 20, 2021 at 2:18 PM Al Viro wrote: > > On Mon, May 17, 2021 at 05:55:03PM +0800, Xie Yongji wrote: > > Export receive_fd() so that some modules can use > > it to pass file descriptor between processes without > > missing any security stuffs. > > Which tree is that against? Because in

Re: Re: [PATCH v7 04/12] virtio-blk: Add validation for block size in config space

2021-05-19 Thread Yongji Xie
On Wed, May 19, 2021 at 10:42 PM Dan Carpenter wrote: > > On Wed, May 19, 2021 at 09:39:20PM +0800, Yongji Xie wrote: > > On Mon, May 17, 2021 at 5:56 PM Xie Yongji wrote: > > > > > > This ensures that we will not use an invalid block size > > > in con

Re: [PATCH v7 04/12] virtio-blk: Add validation for block size in config space

2021-05-19 Thread Yongji Xie
On Mon, May 17, 2021 at 5:56 PM Xie Yongji wrote: > > This ensures that we will not use an invalid block size > in config space (might come from an untrusted device). > > Signed-off-by: Xie Yongji > --- > drivers/block/virtio_blk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [RESEND PATCH v2 0/6] vfio-pci: Add support for mmapping MSI-X table

2016-06-08 Thread Yongji Xie
Hi, Eric On 2016/6/8 15:41, Auger Eric wrote: Hi Yongji, Le 02/06/2016 à 08:09, Yongji Xie a écrit : Current vfio-pci implementation disallows to mmap the page containing MSI-X table in case that users can write directly to MSI-X table and generate an incorrect MSIs. However

Re: [RESEND PATCH v2 2/6] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller enables IRQ remapping

2016-06-06 Thread Yongji Xie
-ci/linux/commits/Yongji-Xie/PCI-Add-a-new-PCI_BUS_FLAGS_MSI_REMAP-flag/20160530-215348 base: https://github.com/awilliam/linux-vfio.git next config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205 reproduce: wget https

Re: [RESEND PATCH v2 2/6] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller enables IRQ remapping

2016-06-06 Thread Yongji Xie
-ci/linux/commits/Yongji-Xie/PCI-Add-a-new-PCI_BUS_FLAGS_MSI_REMAP-flag/20160530-215348 base: https://github.com/awilliam/linux-vfio.git next config: arm-sa1100 (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205 reproduce: wget https://git.kernel.org

Re: [RESEND PATCH v2 0/6] vfio-pci: Add support for mmapping MSI-X table

2016-06-02 Thread Yongji Xie
2016 14:09:57 +0800 Yongji Xie <xyj...@linux.vnet.ibm.com> wrote: Current vfio-pci implementation disallows to mmap the page containing MSI-X table in case that users can write directly to MSI-X table and generate an incorrect MSIs. However, this will cause some performance issu

[RESEND PATCH v2 3/6] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if IOMMU have capability of IRQ remapping

2016-06-02 Thread Yongji Xie
. Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> --- drivers/pci/probe.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 2b9e3ba..15a33e2 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -16,6 +16,7 @@ #include #i

[RESEND PATCH v2 4/6] iommu: Set PCI_BUS_FLAGS_MSI_REMAP on iommu driver initialization

2016-06-02 Thread Yongji Xie
Some iommu drivers would be initialized after PCI device enumeration. So PCI_BUS_FLAGS_MSI_REMAP would not be set when probing PCI devices although IOMMU enables capability of IRQ remapping. This patch tests this capability and set the flag when iommu driver is initialized. Signed-off-by: Yongji

[RESEND PATCH v2 2/6] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller enables IRQ remapping

2016-06-02 Thread Yongji Xie
. [1] https://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg1138820.html Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> --- drivers/pci/msi.c | 15 +++ drivers/pci/probe.c |3 +++ include/linux/msi.h |5 - 3 files changed, 22 insertions(+), 1 de

[RESEND PATCH v2 5/6] pci-ioda: Set PCI_BUS_FLAGS_MSI_REMAP for IODA host bridge

2016-06-02 Thread Yongji Xie
Any IODA host bridge have the capability of IRQ remapping. So we set PCI_BUS_FLAGS_MSI_REMAP when this kind of host birdge is detected. Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> Reviewed-by: Alexey Kardashevskiy <a...@ozlabs.ru> --- arch/powerpc/platforms/powernv/pci-i

[RESEND PATCH v2 6/6] vfio-pci: Allow to expose MSI-X table to userspace if interrupt remapping is enabled

2016-06-02 Thread Yongji Xie
directly. Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> --- drivers/vfio/pci/vfio_pci.c | 17 ++--- drivers/vfio/pci/vfio_pci_rdwr.c |3 ++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c

[RESEND PATCH v2 1/6] PCI: Add a new PCI_BUS_FLAGS_MSI_REMAP flag

2016-06-02 Thread Yongji Xie
chs. With this flag enabled, we can easily know whether it's safe to expose MSI-X tables of PCI BARs to userspace. Some usespace drivers such as VFIO may benefit from this. [1] https://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg1138820.html Signed-off-by: Yongji Xie &

[RESEND PATCH v2 0/6] vfio-pci: Add support for mmapping MSI-X table

2016-06-02 Thread Yongji Xie
://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg1138820.html Yongji Xie (6): PCI: Add a new PCI_BUS_FLAGS_MSI_REMAP flag PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller enables IRQ remapping PCI: Set PCI_BUS_FLAGS_MSI_REMAP if IOMMU have capability of IRQ remapping iommu: Set

[PATCH v2 6/6] vfio-pci: Allow to expose MSI-X table to userspace if interrupt remapping is enabled

2016-05-30 Thread Yongji Xie
directly. Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> --- drivers/vfio/pci/vfio_pci.c | 17 ++--- drivers/vfio/pci/vfio_pci_rdwr.c |3 ++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c

[PATCH v2 3/6] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if IOMMU have capability of IRQ remapping

2016-05-30 Thread Yongji Xie
. Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> --- drivers/pci/probe.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 2b9e3ba..15a33e2 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -16,6 +16,7 @@ #include #i

[PATCH v2 5/6] pci-ioda: Set PCI_BUS_FLAGS_MSI_REMAP for IODA host bridge

2016-05-30 Thread Yongji Xie
Any IODA host bridge have the capability of IRQ remapping. So we set PCI_BUS_FLAGS_MSI_REMAP when this kind of host birdge is detected. Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> Reviewed-by: Alexey Kardashevskiy <a...@ozlabs.ru> --- arch/powerpc/platforms/powernv/pci-i

[PATCH v2 0/6] vfio-pci: Add support for mmapping MSI-X table

2016-05-30 Thread Yongji Xie
://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg1138820.html Yongji Xie (6): PCI: Add a new PCI_BUS_FLAGS_MSI_REMAP flag PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller enables IRQ remapping PCI: Set PCI_BUS_FLAGS_MSI_REMAP if IOMMU have capability of IRQ remapping iommu: Set

[PATCH v2 2/6] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller enables IRQ remapping

2016-05-30 Thread Yongji Xie
. [1] https://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg1138820.html Signed-off-by: Yongji Xie <xyj...@linux.vnet.ibm.com> --- drivers/pci/msi.c | 15 +++ drivers/pci/probe.c |3 +++ include/linux/msi.h |5 - 3 files changed, 22 insertions(+), 1 de

[PATCH v2 4/6] iommu: Set PCI_BUS_FLAGS_MSI_REMAP on iommu driver initialization

2016-05-30 Thread Yongji Xie
Some iommu drivers would be initialized after PCI device enumeration. So PCI_BUS_FLAGS_MSI_REMAP would not be set when probing PCI devices although IOMMU enables capability of IRQ remapping. This patch tests this capability and set the flag when iommu driver is initialized. Signed-off-by: Yongji

[PATCH v2 1/6] PCI: Add a new PCI_BUS_FLAGS_MSI_REMAP flag

2016-05-30 Thread Yongji Xie
chs. With this flag enabled, we can easily know whether it's safe to expose MSI-X tables of PCI BARs to userspace. Some usespace drivers such as VFIO may benefit from this. [1] https://www.mail-archive.com/linux-kernel%40vger.kernel.org/msg1138820.html Signed-off-by: Yongji Xie &

Re: [PATCH 3/5] PCI: Set PCI_BUS_FLAGS_MSI_REMAP if MSI controller supports IRQ remapping

2016-05-25 Thread Yongji Xie
On 2016/5/25 5:04, Bjorn Helgaas wrote: On Wed, Apr 27, 2016 at 08:43:28PM +0800, Yongji Xie wrote: On ARM HW the capability of IRQ remapping is abstracted on MSI controller side. MSI_FLAG_IRQ_REMAPPING is used to advertise this [1]. To have a universal flag to test this capability

Re: [PATCH 1/5] PCI: Add a new PCI_BUS_FLAGS_MSI_REMAP flag

2016-05-25 Thread Yongji Xie
On 2016/5/25 4:55, Bjorn Helgaas wrote: On Wed, Apr 27, 2016 at 08:43:26PM +0800, Yongji Xie wrote: We introduce a new pci_bus_flags, PCI_BUS_FLAGS_MSI_REMAP which indicates all devices on the bus are protected by the hardware which supports IRQ remapping(intel naming). This changelog

Re: [PATCH 2/5] iommu: Set PCI_BUS_FLAGS_MSI_REMAP if IOMMU have capability of IRQ remapping

2016-05-24 Thread Yongji Xie
On 2016/5/25 5:11, Bjorn Helgaas wrote: On Wed, Apr 27, 2016 at 08:43:27PM +0800, Yongji Xie wrote: The capability of IRQ remapping is abstracted on IOMMU side on some archs. There is a existing flag IOMMU_CAP_INTR_REMAP for this. To have a universal flag to test this capability for different

Re: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-05 Thread Yongji Xie
Hi David and Kevin, On 2016/5/5 17:54, David Laight wrote: From: Tian, Kevin Sent: 05 May 2016 10:37 ... Acutually, we are not aimed at accessing MSI-X table from guest. So I think it's safe to passthrough MSI-X table if we can make sure guest kernel would not touch MSI-X table in normal

Re: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-03 Thread Yongji Xie
On 2016/5/3 14:22, Tian, Kevin wrote: From: Yongji Xie [mailto:xyj...@linux.vnet.ibm.com] Sent: Tuesday, May 03, 2016 2:08 PM On 2016/5/3 13:34, Tian, Kevin wrote: From: Yongji Xie Sent: Wednesday, April 27, 2016 8:43 PM This patch enables mmapping MSI-X tables if hardware supports

  1   2   >