RE: [PATCH for-9.0 09/10] vfio/spapr: Only compile sPAPR IOMMU support when needed

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 09/10] vfio/spapr: Only compile sPAPR IOMMU >support when needed > >sPAPR IOMMU support is only needed for pseries machines. Compile out >support when CONFIG_PSERIES is not set.

RE: [PATCH for-9.0 08/10] vfio/iommufd: Introduce a VFIOIOMMU iommufd QOM interface

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 08/10] vfio/iommufd: Introduce a VFIOIOMMU >iommufd QOM interface > >As previously done for the sPAPR and legacy IOMMU backends, convert >the VFIOIOMMUOps struct to a QOM

RE: [PATCH for-9.0 07/10] vfio/spapr: Introduce a sPAPR VFIOIOMMU QOM interface

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 07/10] vfio/spapr: Introduce a sPAPR VFIOIOMMU >QOM interface > >Move vfio_spapr_container_setup() to a VFIOIOMMUClass::setup handler >and convert the sPAPR VFIOIOMMUOps struct

RE: [PATCH for-9.0 06/10] vfio/container: Intoduce a new VFIOIOMMUClass::setup handler

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 06/10] vfio/container: Intoduce a new >VFIOIOMMUClass::setup handler > >This will help in converting the sPAPR IOMMU backend to a QOM interface. > >Signed-off-by: Cédric Le

RE: [PATCH for-9.0 05/10] vfio/container: Introduce a VFIOIOMMU legacy QOM interface

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 05/10] vfio/container: Introduce a VFIOIOMMU >legacy QOM interface > >Convert the legacy VFIOIOMMUOps struct to the new VFIOIOMMU QOM >interface. The set of of operations for

RE: [PATCH for-9.0 04/10] vfio/container: Introduce a VFIOIOMMU QOM interface

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 04/10] vfio/container: Introduce a VFIOIOMMU >QOM interface > >Simply transform the VFIOIOMMUOps struct in an InterfaceClass and do >some initial name replacements. Next changes

RE: [PATCH for-9.0 03/10] vfio/container: Initialize VFIOIOMMUOps under vfio_init_container()

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 03/10] vfio/container: Initialize VFIOIOMMUOps >under vfio_init_container() > >vfio_init_container() already defines the IOMMU type of the container. >Do the same for the

RE: [PATCH for-9.0 02/10] vfio/container: Introduce vfio_legacy_setup() for further cleanups

2023-12-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 02/10] vfio/container: Introduce vfio_legacy_setup() >for further cleanups > >This will help subsequent patches to unify the initialization of type1 >and sPAPR IOMMU backends. >

RE: [PATCH for-9.0 01/10] vfio/spapr: Extend VFIOIOMMUOps with a release handler

2023-12-10 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Friday, December 8, 2023 4:46 PM >Subject: [PATCH for-9.0 01/10] vfio/spapr: Extend VFIOIOMMUOps with a >release handler > >This allows to abstract a bit more the sPAPR IOMMU support in the >legacy IOMMU backend. >

RE: [PATCH rfcv2(upstream rfcv1) 01/25] Update linux header to support nested hwpt alloc

2023-12-07 Thread Duan, Zhenzhong
Sorry, please ignore this email, wrong operations. Thanks Zhenzhong >-Original Message- >From: Duan, Zhenzhong >Sent: Thursday, December 7, 2023 4:17 PM >Subject: [PATCH rfcv2(upstream rfcv1) 01/25] Update linux header to >support nested hwpt alloc > >Repo: https:/

RE: [PATCH] hw/ppc: Improve build for PPC VFIO

2023-11-24 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, November 24, 2023 3:59 PM >Subject: Re: [PATCH] hw/ppc: Improve build for PPC VFIO > >Zhenzhong, > >> How about what's below  instead ? >> >> >> Thanks, >> >> C. > >I will resend the build fix with the proposal below since it

RE: [PATCH] hw/ppc: Improve build for PPC VFIO

2023-11-22 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Thursday, November 23, 2023 3:33 PM >Subject: Re: [PATCH] hw/ppc: Improve build for PPC VFIO > >On 11/23/23 07:01, Zhenzhong Duan wrote: >> VFIO is not a required subsystem for the pseries machine but it's >> force enabled currently.

RE: [PATCH v7 00/27] vfio: Adopt iommufd

2023-11-22 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, November 22, 2023 4:07 PM >Subject: Re: [PATCH v7 00/27] vfio: Adopt iommufd > > >>> The series is pushed on top of vfio-next in the vfio-8.2 tree : >>> >>>https://github.com/legoater/qemu/commits/vfio-8.2 >>> >>> with a

RE: [PATCH v7 00/27] vfio: Adopt iommufd

2023-11-21 Thread Duan, Zhenzhong
>-Original Message- >From: Nicolin Chen >Sent: Wednesday, November 22, 2023 6:56 AM >Subject: Re: [PATCH v7 00/27] vfio: Adopt iommufd > >On Tue, Nov 21, 2023 at 04:43:59PM +0800, Zhenzhong Duan wrote: > >> qemu code: >https://github.com/yiliu1765/qemu/commits/zhenzhong/iommufd_cdev_v7

RE: [PATCH v7 08/27] vfio/pci: Introduce a vfio pci hot reset interface

2023-11-21 Thread Duan, Zhenzhong
Hi Philippe, >-Original Message- >From: Philippe Mathieu-Daudé >Sent: Wednesday, November 22, 2023 2:39 AM >Subject: Re: [PATCH v7 08/27] vfio/pci: Introduce a vfio pci hot reset >interface > >Hi Zhenzhong, > >On 21/11/23 09:44, Zhenzhong Duan wrote: >> Legacy vfio pci and iommufd cdev

RE: [PATCH v7 00/27] vfio: Adopt iommufd

2023-11-21 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, November 22, 2023 1:23 AM >Subject: Re: [PATCH v7 00/27] vfio: Adopt iommufd > >Hello Zhenzhong > >On 11/21/23 09:43, Zhenzhong Duan wrote: >> Hi, >> >> Thanks all for giving guides and comments on previous series, this is >>

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-21 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 21, 2023 4:06 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >Hello Zhenzhong, > Below are other gaps I can think of for now: Gaps: 1. dirty page sync, WIP (Joao)

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-20 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 21, 2023 1:09 AM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >Hello Zhenzhong > >On 11/20/23 11:07, Duan, Zhenzhong wrote: >> Hi Cédric, >> >

RE: [PATCH v6 00/21] vfio: Adopt iommufd

2023-11-20 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Monday, November 20, 2023 5:15 PM >Subject: Re: [PATCH v6 00/21] vfio: Adopt iommufd > >Hi Zhenzhong, > >On 11/14/23 11:09, Zhenzhong Duan wrote: >> Hi, >> >> Thanks all for giving guides and comments on previous series, this is >> the

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-20 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Monday, November 20, 2023 4:25 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > > A similar issue with a fix submitted below, ccing related people. >

RE: [PATCH v6 09/21] vfio/iommufd: Enable pci hot reset through iommufd cdev interface

2023-11-19 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Friday, November 17, 2023 9:54 PM >Subject: Re: [PATCH v6 09/21] vfio/iommufd: Enable pci hot reset through >iommufd cdev interface > > > >On 11/14/23 11:09, Zhenzhong Duan wrote: >> Add a new callback iommufd_cdev_pci_hot_reset to do iommufd

RE: [PATCH] docs/devel: Add VFIO iommufd backend documentation

2023-11-19 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, November 17, 2023 10:28 PM >To: Duan, Zhenzhong ; qemu-devel@nongnu.org >Cc: alex.william...@redhat.com; j...@nvidia.com; nicol...@nvidia.com; >joao.m.mart...@oracle.com; eric.au...@redhat.com; pet...@

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-19 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, November 17, 2023 9:56 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >On 11/17/23 14:29, Eric Auger wrote: >> Hi Cédric, >> >> On 11/17/23 12:39,

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-17 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Friday, November 17, 2023 7:10 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >Hello, > >> +int iommufd_backend_map_dma(IOMMUFDBackend *be, uint32_t ioas_id, >hwaddr iova, >> +

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-16 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Thursday, November 16, 2023 4:33 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >Hi Zhenzhong, > >On 11/16/23 05:04, Duan, Zhenzhong wrote: >> Hi Eric, >> >>> --

RE: [PATCH 1/4] vfio/pci: Move VFIODevice initializations in vfio_instance_init

2023-11-15 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Thursday, November 16, 2023 3:29 PM >To: Duan, Zhenzhong ; qemu-devel@nongnu.org >Cc: alex.william...@redhat.com; j...@nvidia.com; nicol...@nvidia.com; >joao.m.mart...@oracle.com; eric.au...@redhat.com; pet...@

RE: [PATCH v6 11/21] vfio/pci: Make vfio cdev pre-openable by passing a file handle

2023-11-15 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Thursday, November 16, 2023 3:25 PM >Subject: Re: [PATCH v6 11/21] vfio/pci: Make vfio cdev pre-openable by passing >a >file handle > Please add bare documentation:   /* Returns 0 on success, or a negative errno. */

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-15 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Sent: Wednesday, November 15, 2023 8:53 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >Hi Zhenzhong, > >On 11/14/23 11:09, Zhenzhong Duan wrote: >> From: Eric Auger >> >> Introduce an iommufd object

RE: [PATCH 1/4] vfio/pci: Move VFIODevice initializations in vfio_instance_init

2023-11-15 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, November 15, 2023 9:12 PM >Subject: Re: [PATCH 1/4] vfio/pci: Move VFIODevice initializations in >vfio_instance_init > >On 11/15/23 09:32, Zhenzhong Duan wrote: >> Some of the VFIODevice initializations is in vfio_realize, >>

RE: [PATCH v6 11/21] vfio/pci: Make vfio cdev pre-openable by passing a file handle

2023-11-15 Thread Duan, Zhenzhong
Hi Philippe, >-Original Message- >From: Cédric Le Goater >Sent: Wednesday, November 15, 2023 9:05 PM >Subject: Re: [PATCH v6 11/21] vfio/pci: Make vfio cdev pre-openable by passing >a >file handle > >On 11/15/23 13:09, Philippe Mathieu-Daudé wrote: >> Hi Zhenzhong, >> >> On 14/11/23

RE: [PATCH v6 00/21] vfio: Adopt iommufd

2023-11-14 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 14, 2023 10:52 PM >Subject: Re: [PATCH v6 00/21] vfio: Adopt iommufd > >Hello Zhenzhong, > >On 11/14/23 11:09, Zhenzhong Duan wrote: >> Hi, >> >> Thanks all for giving guides and comments on previous series,

RE: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-14 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 14, 2023 9:29 PM >Subject: Re: [PATCH v6 01/21] backends/iommufd: Introduce the iommufd object > >On 11/14/23 11:09, Zhenzhong Duan wrote: >> From: Eric Auger >> >> Introduce an iommufd object which allows the

RE: [PATCH v6 08/21] vfio/pci: Introduce a vfio pci hot reset interface

2023-11-14 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 14, 2023 9:52 PM >Subject: Re: [PATCH v6 08/21] vfio/pci: Introduce a vfio pci hot reset >interface > >On 11/14/23 11:09, Zhenzhong Duan wrote: >> Legacy vfio pci and iommufd cdev have different process to hot reset

RE: [PATCH v6 06/21] vfio/iommufd: Add support for iova_ranges and pgsizes

2023-11-14 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 14, 2023 9:46 PM >Subject: Re: [PATCH v6 06/21] vfio/iommufd: Add support for iova_ranges and >pgsizes > >On 11/14/23 11:09, Zhenzhong Duan wrote: >> Some vIOMMU such as virtio-iommu use IOVA ranges from host side to

RE: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object

2023-11-14 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 14, 2023 5:41 PM >Subject: Re: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object > > >>> The only tool we have for configuring the schema is the 'if' >>> conditional. 'if': 'CONFIG_IOMMUFD' compiles to

RE: [PATCH v5 10/20] vfio/pci: Make vfio cdev pre-openable by passing a file handle

2023-11-13 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, November 13, 2023 7:08 PM >Subject: Re: [PATCH v5 10/20] vfio/pci: Make vfio cdev pre-openable by passing >a >file handle > >On 11/13/23 04:00, Duan, Zhenzhong wrote: >> >> >>> -

RE: [PATCH v5 03/20] vfio/iommufd: Implement the iommufd backend

2023-11-13 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, November 13, 2023 7:05 PM >Subject: Re: [PATCH v5 03/20] vfio/iommufd: Implement the iommufd backend > >On 11/10/23 11:18, Duan, Zhenzhong wrote: >> >> >>> -Original Message- >&

RE: [PATCH v5 03/20] vfio/iommufd: Implement the iommufd backend

2023-11-12 Thread Duan, Zhenzhong
>-Original Message- >From: Nicolin Chen >Sent: Sunday, November 12, 2023 1:47 AM >Subject: Re: [PATCH v5 03/20] vfio/iommufd: Implement the iommufd backend > >On Thu, Nov 09, 2023 at 07:45:12PM +0800, Zhenzhong Duan wrote: > >> +static int iommufd_cdev_attach_ioas_hwpt(VFIODevice

RE: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-12 Thread Duan, Zhenzhong
>-Original Message- >From: Joao Martins >Sent: Friday, November 10, 2023 9:09 PM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On 10/11/2023 03:15, Duan, Zhenzhong wrote: >> Hi Jason, Joao, >> >>> -Original

RE: [PATCH v5 10/20] vfio/pci: Make vfio cdev pre-openable by passing a file handle

2023-11-12 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, November 10, 2023 6:53 PM >Subject: Re: [PATCH v5 10/20] vfio/pci: Make vfio cdev pre-openable by passing >a >file handle > >On 11/9/23 12:45, Zhenzhong Duan wrote: >> This gives management tools like libvirt a chance to open

RE: [PATCH v5 03/20] vfio/iommufd: Implement the iommufd backend

2023-11-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, November 10, 2023 5:34 PM >Subject: Re: [PATCH v5 03/20] vfio/iommufd: Implement the iommufd backend > >On 11/9/23 12:45, Zhenzhong Duan wrote: >> From: Yi Liu >> >> Add the iommufd backend. The IOMMUFD container class is

RE: [PATCH v5 05/20] vfio/iommufd: Add support for iova_ranges and pgsizes

2023-11-10 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Friday, November 10, 2023 5:36 PM >Subject: Re: [PATCH v5 05/20] vfio/iommufd: Add support for iova_ranges and >pgsizes > >On 11/9/23 12:45, Zhenzhong Duan wrote: >> Some vIOMMU such as virtio-iommu use iova ranges from host

RE: [PATCH v5 11/20] vfio/platform: Allow the selection of a given iommu backend

2023-11-10 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, November 10, 2023 4:50 PM >Subject: Re: [PATCH v5 11/20] vfio/platform: Allow the selection of a given >iommu backend > >On 11/9/23 12:45, Zhenzhong Duan wrote: >> Now we support two types of iommu backends, let's add the

RE: [PATCH v5 19/20] kconfig: Activate IOMMUFD for s390x machines

2023-11-09 Thread Duan, Zhenzhong
>-Original Message- >From: Matthew Rosato >Sent: Friday, November 10, 2023 7:00 AM >Subject: Re: [PATCH v5 19/20] kconfig: Activate IOMMUFD for s390x machines > >On 11/9/23 6:45 AM, Zhenzhong Duan wrote: >> From: Cédric Le Goater >> >> Signed-off-by: Cédric Le Goater >> Signed-off-by:

RE: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-09 Thread Duan, Zhenzhong
Hi Jason, Joao, >-Original Message- >From: Jason Gunthorpe >Sent: Thursday, November 9, 2023 10:35 PM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On Thu, Nov 09, 2023 at 01:21:59PM +, Joao Martins wrote: >> On 09/11/2023 13:09, Jason Gunthorpe wrote:

RE: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object

2023-11-09 Thread Duan, Zhenzhong
>-Original Message- >From: Markus Armbruster >Sent: Thursday, November 9, 2023 5:05 PM >Subject: Re: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object > >Cédric Le Goater writes: > >> On 11/8/23 11:30, Markus Armbruster wrote: >>> Cédric Le Goater writes: >>> Hello

RE: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-08 Thread Duan, Zhenzhong
>-Original Message- >From: Jason Gunthorpe >Sent: Wednesday, November 8, 2023 10:19 PM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On Wed, Nov 08, 2023 at 01:25:34PM +0000, Duan, Zhenzhong wrote: > >> >I was expectin

RE: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-08 Thread Duan, Zhenzhong
>-Original Message- >From: Jason Gunthorpe >Sent: Wednesday, November 8, 2023 8:48 PM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On Wed, Nov 08, 2023 at 07:16:52AM +0000, Duan, Zhenzhong wrote: > >> >> +ret = i

RE: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object

2023-11-08 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, November 8, 2023 5:41 PM >Subject: Re: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object > + hwaddr iova, ram_addr_t size) +{ +int ret; +struct

RE: [PATCH v4 00/41] vfio: Adopt iommufd

2023-11-08 Thread Duan, Zhenzhong
>-Original Message- >From: Duan, Zhenzhong >Sent: Wednesday, November 8, 2023 4:38 PM >Subject: RE: [PATCH v4 00/41] vfio: Adopt iommufd > > > >>-Original Message- >>From: Matthew Rosato >>Sent: Wednesday, November 8, 2023 11:27 AM >

RE: [PATCH v4 00/41] vfio: Adopt iommufd

2023-11-08 Thread Duan, Zhenzhong
>-Original Message- >From: Matthew Rosato >Sent: Wednesday, November 8, 2023 11:27 AM >Subject: Re: [PATCH v4 00/41] vfio: Adopt iommufd > >On 11/7/23 1:28 PM, Cédric Le Goater wrote: >> On 11/2/23 08:12, Zhenzhong Duan wrote: >>> Hi, >>> >>> Thanks all for giving guides and comments on

RE: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-07 Thread Duan, Zhenzhong
Hi Matthew, >-Original Message- >From: Matthew Rosato >Sent: Wednesday, November 8, 2023 11:00 AM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On 11/2/23 3:12 AM, Zhenzhong Duan wrote: >> From: Yi Liu >> >> Add the iommufd backend. The IOMMUFD container

RE: [PATCH v4 25/41] Add iommufd configure option

2023-11-07 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 10:37 PM >Subject: Re: [PATCH v4 25/41] Add iommufd configure option > >On 11/7/23 14:14, Cédric Le Goater wrote: >> On 11/2/23 08:12, Zhenzhong Duan wrote: >>> This adds "--enable-iommufd/--disable-iommufd" to

RE: [PATCH v4 32/41] vfio/pci: Introduce a vfio pci hot reset interface

2023-11-07 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 9:53 PM >Subject: Re: [PATCH v4 32/41] vfio/pci: Introduce a vfio pci hot reset >interface > >On 11/2/23 08:12, Zhenzhong Duan wrote: >> Legacy vfio pci and iommufd cdev have different process to hot reset >>

RE: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend

2023-11-07 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 9:41 PM >Subject: Re: [PATCH v4 28/41] vfio/iommufd: Implement the iommufd backend > >On 11/2/23 08:12, Zhenzhong Duan wrote: >> From: Yi Liu >> >> Add the iommufd backend. The IOMMUFD container class is

RE: [PATCH v4 41/41] vfio: Compile out iommufd for PPC target

2023-11-07 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 9:44 PM >Subject: Re: [PATCH v4 41/41] vfio: Compile out iommufd for PPC target > >On 11/2/23 08:13, Zhenzhong Duan wrote: >> Since PPC doesn't support IOMMUFD, make iommufd related code >> compiled out. >> >>

RE: [PATCH v4 27/41] util/char_dev: Add open_cdev()

2023-11-07 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 9:38 PM >Subject: Re: [PATCH v4 27/41] util/char_dev: Add open_cdev() > >On 11/2/23 08:12, Zhenzhong Duan wrote: >> From: Yi Liu >> >> /dev/vfio/devices/vfioX may not exist. In that case it is still possible

RE: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object

2023-11-07 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 9:33 PM >Subject: Re: [PATCH v4 26/41] backends/iommufd: Introduce the iommufd object > >On 11/2/23 08:12, Zhenzhong Duan wrote: >> From: Eric Auger [...] >> diff --git a/qapi/qom.json b/qapi/qom.json >> index

RE: [PATCH v4 30/41] vfio/iommufd: Add support for iova_ranges

2023-11-06 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 1:19 AM >Subject: Re: [PATCH v4 30/41] vfio/iommufd: Add support for iova_ranges > >On 11/2/23 08:12, Zhenzhong Duan wrote: >> Some vIOMMU such as virtio-iommu use iova ranges from host side to >> setup

RE: [PATCH v4 22/41] vfio/spapr: switch to spapr IOMMU BE add/del_section_window

2023-11-06 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, November 7, 2023 1:33 AM >Subject: Re: [PATCH v4 22/41] vfio/spapr: switch to spapr IOMMU BE >add/del_section_window > >On 11/2/23 08:12, Zhenzhong Duan wrote: >> No fucntional change intended. >> >> Signed-off-by: Zhenzhong

RE: [PATCH v3 23/37] Add iommufd configure option

2023-10-31 Thread Duan, Zhenzhong
Hi All, >-Original Message- >From: Cédric Le Goater >Sent: Tuesday, October 31, 2023 4:59 PM >Subject: Re: [PATCH v3 23/37] Add iommufd configure option > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> This adds "--enable-iommufd/--disable-iommufd" to enable or disable >> iommufd support,

RE: [PATCH v3 29/37] vfio/iommufd: Bypass EEH if iommufd backend

2023-10-31 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, October 31, 2023 5:01 PM >Subject: Re: [PATCH v3 29/37] vfio/iommufd: Bypass EEH if iommufd backend > >On 10/31/23 03:26, Duan, Zhenzhong wrote: >> >> >>> -Original Message- >&

RE: [PATCH v3 06/37] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-31 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, October 31, 2023 3:58 PM >Subject: Re: [PATCH v3 06/37] vfio: Introduce base object for VFIOContainer and >targetted interface > >On 10/30/23 03:40, Duan, Zhenzhong wrote: >> >> >>> -

RE: [PATCH v3 30/37] vfio/pci: Extract out a helper vfio_pci_get_pci_hot_reset_info

2023-10-30 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, October 30, 2023 10:00 PM >Subject: Re: [PATCH v3 30/37] vfio/pci: Extract out a helper >vfio_pci_get_pci_hot_reset_info > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> This helper will be used by both legacy and iommufd

RE: [PATCH v3 31/37] vfio/pci: Adapt vfio pci hot reset support with iommufd BE

2023-10-30 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, October 30, 2023 10:05 PM >Subject: Re: [PATCH v3 31/37] vfio/pci: Adapt vfio pci hot reset support with >iommufd BE > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> As pci hot reset path need to reference pci specific functions

RE: [PATCH v3 29/37] vfio/iommufd: Bypass EEH if iommufd backend

2023-10-30 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, October 30, 2023 9:57 PM >Subject: Re: [PATCH v3 29/37] vfio/iommufd: Bypass EEH if iommufd backend > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> IBM EEH is only supported by legacy backend currently, bypass it >> for IOMMUFD

RE: [PATCH v3 27/37] vfio/iommufd: Switch to manual hwpt allocation

2023-10-30 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, October 30, 2023 9:52 PM >Subject: Re: [PATCH v3 27/37] vfio/iommufd: Switch to manual hwpt allocation > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> IOMMUFD supports auto allocated hwpt and manually allocated one. >> Manually

RE: [PATCH v3 25/37] util/char_dev: Add open_cdev()

2023-10-30 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, October 30, 2023 10:54 PM >Subject: Re: [PATCH v3 25/37] util/char_dev: Add open_cdev() > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> From: Yi Liu >> >> /dev/vfio/devices/vfioX may not exist. In that case it is still possible

RE: [PATCH v3 18/37] vfio/container: Implement attach/detach_device

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Saturday, October 28, 2023 12:07 AM >Subject: Re: [PATCH v3 18/37] vfio/container: Implement attach/detach_device > >Sorry, previous email was empty. Friday effect ! > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> From: Eric Auger >> >>

RE: [PATCH v3 19/37] vfio/spapr: Introduce spapr backend and target interface

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Saturday, October 28, 2023 12:05 AM >Subject: Re: [PATCH v3 19/37] vfio/spapr: Introduce spapr backend and target >interface > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> Introduce an empry spapr backend which will hold spapr specific

RE: [PATCH v3 14/37] vfio/container: Move vrdl_list, pgsizes and dma_max_mappings to base container

2023-10-29 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 11:52 PM >Subject: Re: [PATCH v3 14/37] vfio/container: Move vrdl_list, pgsizes and >dma_max_mappings to base container > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> From: Eric Auger >> ... >>

RE: [PATCH v3 11/37] vfio/container: Switch to IOMMU BE set_dirty_page_tracking/query_dirty_bitmap API

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 10:53 PM >Subject: Re: [PATCH v3 11/37] vfio/container: Switch to IOMMU BE >set_dirty_page_tracking/query_dirty_bitmap API > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> From: Eric Auger >> >>

RE: [PATCH v3 10/37] vfio/container: Move space field to base container

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 10:46 PM >Subject: Re: [PATCH v3 10/37] vfio/container: Move space field to base >container > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> From: Eric Auger >> >> Move the space field to the base object. Also

RE: [PATCH v3 09/37] vfio/common: Move giommu_list in base container

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 10:39 PM >Subject: Re: [PATCH v3 09/37] vfio/common: Move giommu_list in base >container > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> From: Eric Auger >> >> Move the giommu_list field in the base object and

RE: [PATCH v3 08/37] vfio/container: Switch to dma_map|unmap API

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 10:26 PM >Subject: Re: [PATCH v3 08/37] vfio/container: Switch to dma_map|unmap API > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> From: Eric Auger >> >> No fucntional change intended. >> >> Signed-off-by: Eric

RE: [PATCH v3 07/37] vfio/container: Introduce a empty VFIOIOMMUOps

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 10:21 PM >Subject: Re: [PATCH v3 07/37] vfio/container: Introduce a empty >VFIOIOMMUOps > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> This empty VFIOIOMMUOps named vfio_legacy_ops will hold all general >> IOMMU

RE: [PATCH v3 06/37] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-29 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 10:03 PM >Subject: Re: [PATCH v3 06/37] vfio: Introduce base object for VFIOContainer and >targetted interface > >On 10/26/23 12:30, Zhenzhong Duan wrote: >> Introduce a dumb VFIOContainer base object and its

RE: [PATCH v3 24/37] backends/iommufd: Introduce the iommufd object

2023-10-27 Thread Duan, Zhenzhong
>-Original Message- >From: Markus Armbruster >Sent: Friday, October 27, 2023 4:31 PM >Subject: Re: [PATCH v3 24/37] backends/iommufd: Introduce the iommufd object > >"Duan, Zhenzhong" writes: > >>>-Original Message- >>> From:

RE: [PATCH v3 00/37] vfio: Adopt iommufd

2023-10-27 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Friday, October 27, 2023 3:46 PM >Subject: Re: [PATCH v3 00/37] vfio: Adopt iommufd > >On 10/27/23 08:17, Duan, Zhenzhong wrote: >> Hi Markus, >> >>> -Original Message- >>

RE: [PATCH v3 24/37] backends/iommufd: Introduce the iommufd object

2023-10-27 Thread Duan, Zhenzhong
>-Original Message- >From: Markus Armbruster >Sent: Thursday, October 26, 2023 9:28 PM >Subject: Re: [PATCH v3 24/37] backends/iommufd: Introduce the iommufd object > >Zhenzhong Duan writes: > >> From: Eric Auger >> >> Introduce an iommufd object which allows the interaction >> with

RE: [PATCH v3 00/37] vfio: Adopt iommufd

2023-10-27 Thread Duan, Zhenzhong
Hi Markus, >-Original Message- >From: Markus Armbruster >Sent: Thursday, October 26, 2023 9:27 PM >Subject: Re: [PATCH v3 00/37] vfio: Adopt iommufd > >Zhenzhong Duan writes: > >> Hi, >> >> Thanks all for giving guides and comments on previous series, here is >> the v3 of pure iommufd

RE: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-24 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, October 23, 2023 11:29 PM > >Subject: Re: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and >targetted interface > >On 10/20/23 10:19, Eric Auger wrote: >> Hi, >> On 10/20/23

RE: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-20 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Friday, October 20, 2023 4:19 PM >Subject: Re: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and >targetted interface > >Hi, >On 10/20/23 07:48, Duan, Zhenzhong wrote: >> Hi Cédric, >> >

RE: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-19 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Thursday, October 19, 2023 8:18 PM >Subject: Re: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and >targetted interface > >On 10/19/23 04:29, Duan, Zhenzhong wrote: >>> -

RE: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-18 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, October 18, 2023 4:04 PM >Subject: Re: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and >targetted interface > >On 10/18/23 04:41, Duan, Zhenzhong wrote: >> Hi Cédric, &

RE: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and targetted interface

2023-10-17 Thread Duan, Zhenzhong
Hi Cédric, >-Original Message- >From: Cédric Le Goater >Sent: Tuesday, October 17, 2023 11:51 PM >Subject: Re: [PATCH v2 02/27] vfio: Introduce base object for VFIOContainer and >targetted interface > >On 10/16/23 10:31, Zhenzhong Duan wrote: >> From: Eric Auger >> >> Introduce a dumb

RE: [PATCH v2 01/27] vfio: Rename VFIOContainer into VFIOLegacyContainer

2023-10-17 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Tuesday, October 17, 2023 11:51 PM >Subject: Re: [PATCH v2 01/27] vfio: Rename VFIOContainer into >VFIOLegacyContainer > >Hello, > >On 10/16/23 10:31, Zhenzhong Duan wrote: >> From: Eric Auger >> >> In the prospect to introduce a base

RE: [PATCH v2 17/27] backends/iommufd: Introduce the iommufd object

2023-10-17 Thread Duan, Zhenzhong
Hi Markus, >-Original Message- >From: Markus Armbruster >Sent: Monday, October 16, 2023 6:01 PM >Subject: Re: [PATCH v2 17/27] backends/iommufd: Introduce the iommufd object > >Zhenzhong Duan writes: > >> From: Eric Auger >> >> Introduce an iommufd object which allows the interaction

RE: [PATCH] vfio/pci: Remove vfio_detach_device from vfio_realize error path

2023-10-11 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Thursday, October 12, 2023 4:10 AM >To: eric.auger@gmail.com; eric.au...@redhat.com; qemu- >de...@nongnu.org; alex.william...@redhat.com; c...@redhat.com; Duan, >Zhenzhong ; Liu, Yi L ; >yangh...@redhat.com >S

RE: [PATCH v5 07/15] vfio/pci: Introduce vfio_[attach/detach]_device

2023-10-10 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Sent: Monday, October 9, 2023 5:09 PM >Subject: [PATCH v5 07/15] vfio/pci: Introduce vfio_[attach/detach]_device > >We want the VFIO devices to be able to use two different >IOMMU backends, the legacy VFIO one and the new iommufd one. >

RE: [PATCH v4 10/15] vfio/ccw: Use vfio_[attach/detach]_device

2023-10-09 Thread Duan, Zhenzhong
tach]_device > >Hi Zhenzhong, > >On 10/9/23 03:25, Duan, Zhenzhong wrote: >> >>> -Original Message- >>> From: Eric Auger >>> Sent: Monday, October 9, 2023 1:46 AM >>> Subject: Re: [PATCH v4 10/15] vfio/ccw: Use vfio_[attach/detach]_device &g

RE: [PATCH 0/3] vfio: memory leak fix and code cleanup

2023-10-09 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Monday, October 9, 2023 2:32 PM >Subject: Re: [PATCH 0/3] vfio: memory leak fix and code cleanup > >On 10/9/23 04:20, Zhenzhong Duan wrote: >> Hi, >> >> This trivial patchset fixes a incremental memory leak in rare case, >> and some

RE: [PATCH v4 10/15] vfio/ccw: Use vfio_[attach/detach]_device

2023-10-08 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Monday, October 9, 2023 1:46 AM >Subject: Re: [PATCH v4 10/15] vfio/ccw: Use vfio_[attach/detach]_device > >Hi Zhenzhong, >On 10/8/23 12:21, Duan, Zhenzhong wrote: >> Hi Eric, >> >>> -Original M

RE: [PATCH v4 10/15] vfio/ccw: Use vfio_[attach/detach]_device

2023-10-08 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Sent: Wednesday, October 4, 2023 11:44 PM >Subject: [PATCH v4 10/15] vfio/ccw: Use vfio_[attach/detach]_device > >Let the vfio-ccw device use vfio_attach_device() and >vfio_detach_device(), hence hiding the details of the used >IOMMU

RE: [PATCH v2 09/12] vfio/ccw: Use vfio_[attach/detach]_device

2023-09-27 Thread Duan, Zhenzhong
Hi Eric, Matthew, >-Original Message- >From: Matthew Rosato >Sent: Wednesday, September 27, 2023 9:26 PM >Subject: Re: [PATCH v2 09/12] vfio/ccw: Use vfio_[attach/detach]_device > >On 9/27/23 8:09 AM, Duan, Zhenzhong wrote: >> >> >>> -Ori

RE: [PATCH v2 11/12] vfio/common: Introduce two kinds of VFIO device lists

2023-09-27 Thread Duan, Zhenzhong
Hi Eric, >-Original Message- >From: Eric Auger >Sent: Wednesday, September 27, 2023 9:14 PM >Subject: Re: [PATCH v2 11/12] vfio/common: Introduce two kinds of VFIO device >lists > >Hi Zhenzhong, >On 9/26/23 13:32, Zhenzhong Duan wrote: >> In VFIO subsystem, there are different VFIO

RE: [PATCH v2 06/12] vfio/pci: Introduce vfio_[attach/detach]_device

2023-09-27 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Wednesday, September 27, 2023 8:23 PM >Subject: Re: [PATCH v2 06/12] vfio/pci: Introduce vfio_[attach/detach]_device > > > >On 9/27/23 12:07, Duan, Zhenzhong wrote: >> Hi Eric, >> >>> -Origina

RE: [PATCH v2 08/12] vfio/ap: Use vfio_[attach/detach]_device

2023-09-27 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Subject: Re: [PATCH v2 08/12] vfio/ap: Use vfio_[attach/detach]_device > > > >On 9/27/23 13:52, Duan, Zhenzhong wrote: >> >>> -Original Message- >>> From: Eric Auger >>> Sent: Wednesd

RE: [PATCH v2 06/12] vfio/pci: Introduce vfio_[attach/detach]_device

2023-09-27 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, September 27, 2023 6:17 PM >Subject: Re: [PATCH v2 06/12] vfio/pci: Introduce vfio_[attach/detach]_device > >On 9/26/23 13:32, Zhenzhong Duan wrote: >> From: Eric Auger >> >> We want the VFIO devices to be able to use two

RE: [PATCH v2 09/12] vfio/ccw: Use vfio_[attach/detach]_device

2023-09-27 Thread Duan, Zhenzhong
>-Original Message- >From: Eric Auger >Sent: Wednesday, September 27, 2023 6:00 PM >Subject: Re: [PATCH v2 09/12] vfio/ccw: Use vfio_[attach/detach]_device > > > >On 9/26/23 13:32, Zhenzhong Duan wrote: >> From: Eric Auger >> >> Let the vfio-ccw device use vfio_attach_device() and >>

<    1   2   3   4   5   >