Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2024-01-15 Thread Yi Liu
On 2023/12/12 23:35, Jason Gunthorpe wrote: On Mon, Dec 11, 2023 at 11:49:49AM -0700, Alex Williamson wrote: On Mon, 11 Dec 2023 14:10:28 -0400 Jason Gunthorpe wrote: On Mon, Dec 11, 2023 at 11:03:45AM -0700, Alex Williamson wrote: On Sun, 26 Nov 2023 22:39:09 -0800 Yi Liu wrote: the

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2024-01-15 Thread Yi Liu
On 2023/12/12 23:27, Jason Gunthorpe wrote: On Mon, Dec 11, 2023 at 08:39:46PM -0700, Alex Williamson wrote: So how do we keep up with PCIe spec updates relative to the PASID capability with this proposal? Would it make more sense to report the raw capability register and capability version ra

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-12 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, December 12, 2023 11:35 PM > > On Mon, Dec 11, 2023 at 11:49:49AM -0700, Alex Williamson wrote: > > On Mon, 11 Dec 2023 14:10:28 -0400 > > Jason Gunthorpe wrote: > > > > > On Mon, Dec 11, 2023 at 11:03:45AM -0700, Alex Williamson wrote: > > > > On Sun, 26

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-12 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, December 12, 2023 11:32 PM > > On Tue, Dec 12, 2023 at 02:20:01AM +, Tian, Kevin wrote: > > > From: Liu, Yi L > > > Sent: Monday, December 11, 2023 4:08 PM > > > > > > On 2023/12/7 16:47, Tian, Kevin wrote: > > > >> From: Liu, Yi L > > > >> Sent: Mon

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-12 Thread Jason Gunthorpe
On Mon, Dec 11, 2023 at 11:49:49AM -0700, Alex Williamson wrote: > On Mon, 11 Dec 2023 14:10:28 -0400 > Jason Gunthorpe wrote: > > > On Mon, Dec 11, 2023 at 11:03:45AM -0700, Alex Williamson wrote: > > > On Sun, 26 Nov 2023 22:39:09 -0800 > > > Yi Liu wrote: > > > > >the PF). Creating a vir

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-12 Thread Jason Gunthorpe
On Tue, Dec 12, 2023 at 02:20:01AM +, Tian, Kevin wrote: > > From: Liu, Yi L > > Sent: Monday, December 11, 2023 4:08 PM > > > > On 2023/12/7 16:47, Tian, Kevin wrote: > > >> From: Liu, Yi L > > >> Sent: Monday, November 27, 2023 2:39 PM > > >> > > >> +static int vfio_pci_core_feature_pasid(

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-12 Thread Jason Gunthorpe
On Mon, Dec 11, 2023 at 08:39:46PM -0700, Alex Williamson wrote: > So how do we keep up with PCIe spec updates relative to the PASID > capability with this proposal? Would it make more sense to report the > raw capability register and capability version rather that a translated > copy thereof? P

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Yi Liu
On 2023/12/12 11:39, Alex Williamson wrote: On Tue, 12 Dec 2023 02:43:20 + "Duan, Zhenzhong" wrote: -Original Message- From: Alex Williamson Sent: Tuesday, December 12, 2023 2:04 AM Subject: Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Yi Liu
On 2023/12/12 10:16, Tian, Kevin wrote: From: Alex Williamson Sent: Tuesday, December 12, 2023 2:04 AM On Sun, 26 Nov 2023 22:39:09 -0800 Yi Liu wrote: This reports the PASID capability data to userspace via VFIO_DEVICE_FEATURE, hence userspace could probe PASID capability by it. This is a

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Alex Williamson
On Tue, 12 Dec 2023 02:43:20 + "Duan, Zhenzhong" wrote: > >-Original Message- > >From: Alex Williamson > >Sent: Tuesday, December 12, 2023 2:04 AM > >Subject: Re: [PATCH 3/3] vfio: Report PASID capability via > >VFIO_DEVICE_FEATURE ioctl &

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Yi Liu
On 2023/12/12 10:20, Tian, Kevin wrote: From: Liu, Yi L Sent: Monday, December 11, 2023 4:08 PM On 2023/12/7 16:47, Tian, Kevin wrote: From: Liu, Yi L Sent: Monday, November 27, 2023 2:39 PM +static int vfio_pci_core_feature_pasid(struct vfio_device *device, u32 flags, +

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Duan, Zhenzhong
>-Original Message- >From: Alex Williamson >Sent: Tuesday, December 12, 2023 2:04 AM >Subject: Re: [PATCH 3/3] vfio: Report PASID capability via >VFIO_DEVICE_FEATURE ioctl > >On Sun, 26 Nov 2023 22:39:09 -0800 >Yi Liu wrote: > >> This reports the PASID

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Monday, December 11, 2023 4:08 PM > > On 2023/12/7 16:47, Tian, Kevin wrote: > >> From: Liu, Yi L > >> Sent: Monday, November 27, 2023 2:39 PM > >> > >> +static int vfio_pci_core_feature_pasid(struct vfio_device *device, u32 > flags, > >> +

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Tian, Kevin
> From: Alex Williamson > Sent: Tuesday, December 12, 2023 2:04 AM > > On Sun, 26 Nov 2023 22:39:09 -0800 > Yi Liu wrote: > > > This reports the PASID capability data to userspace via > VFIO_DEVICE_FEATURE, > > hence userspace could probe PASID capability by it. This is a bit different > > with

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Alex Williamson
On Mon, 11 Dec 2023 14:10:28 -0400 Jason Gunthorpe wrote: > On Mon, Dec 11, 2023 at 11:03:45AM -0700, Alex Williamson wrote: > > On Sun, 26 Nov 2023 22:39:09 -0800 > > Yi Liu wrote: > > >the PF). Creating a virtual PASID capability in vfio-pci config space > > > needs > > >to find a ho

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Jason Gunthorpe
On Mon, Dec 11, 2023 at 11:03:45AM -0700, Alex Williamson wrote: > On Sun, 26 Nov 2023 22:39:09 -0800 > Yi Liu wrote: > > > This reports the PASID capability data to userspace via VFIO_DEVICE_FEATURE, > > hence userspace could probe PASID capability by it. This is a bit different > > with other c

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Alex Williamson
On Sun, 26 Nov 2023 22:39:09 -0800 Yi Liu wrote: > This reports the PASID capability data to userspace via VFIO_DEVICE_FEATURE, > hence userspace could probe PASID capability by it. This is a bit different > with other capabilities which are reported to userspace when the user reads > the device'

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-11 Thread Yi Liu
On 2023/12/7 16:47, Tian, Kevin wrote: From: Liu, Yi L Sent: Monday, November 27, 2023 2:39 PM +static int vfio_pci_core_feature_pasid(struct vfio_device *device, u32 flags, + struct vfio_device_feature_pasid __user *arg, +

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-12-07 Thread Tian, Kevin
> From: Liu, Yi L > Sent: Monday, November 27, 2023 2:39 PM > > +static int vfio_pci_core_feature_pasid(struct vfio_device *device, u32 flags, > +struct vfio_device_feature_pasid __user > *arg, > +size_t argsz) > +{ > + s

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-11-27 Thread Duan, Zhenzhong
>-Original Message- >From: Liu, Yi L >Sent: Tuesday, November 28, 2023 11:12 AM >Subject: Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE >ioctl > >On 2023/11/27 15:28, Duan, Zhenzhong wrote: >> >> >>> -Original

Re: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-11-27 Thread Yi Liu
On 2023/11/27 15:28, Duan, Zhenzhong wrote: -Original Message- From: Liu, Yi L Sent: Monday, November 27, 2023 2:39 PM Subject: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl This reports the PASID capability data to userspace via VFIO_DEVICE_FEATURE, hence u

RE: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE ioctl

2023-11-26 Thread Duan, Zhenzhong
>-Original Message- >From: Liu, Yi L >Sent: Monday, November 27, 2023 2:39 PM >Subject: [PATCH 3/3] vfio: Report PASID capability via VFIO_DEVICE_FEATURE >ioctl > >This reports the PASID capability data to userspace via VFIO_DEVICE_FEATURE, >hence userspace could probe PASID capability