RE: [PATCH RFCv2 2/8] vfio/iommufd: Introduce auto domain creation

2024-02-26 Thread Duan, Zhenzhong
>-Original Message- >From: Joao Martins >Subject: Re: [PATCH RFCv2 2/8] vfio/iommufd: Introduce auto domain >creation > >On 12/02/2024 16:27, Jason Gunthorpe wrote: >> On Mon, Feb 12, 2024 at 01:56:37PM +, Joao Martins wrote: >>> There's generally t

Re: [PATCH RFCv2 2/8] vfio/iommufd: Introduce auto domain creation

2024-02-20 Thread Joao Martins
On 19/02/2024 08:58, Avihai Horon wrote: > Hi Joao, > > On 12/02/2024 15:56, Joao Martins wrote: >> External email: Use caution opening links or attachments >> >> >> There's generally two modes of operation for IOMMUFD: >> >> * The simple user API which intends to perform relatively simple things

Re: [PATCH RFCv2 2/8] vfio/iommufd: Introduce auto domain creation

2024-02-19 Thread Avihai Horon
Hi Joao, On 12/02/2024 15:56, Joao Martins wrote: External email: Use caution opening links or attachments There's generally two modes of operation for IOMMUFD: * The simple user API which intends to perform relatively simple things with IOMMUs e.g. DPDK. It generally creates an IOAS and

Re: [PATCH RFCv2 2/8] vfio/iommufd: Introduce auto domain creation

2024-02-13 Thread Joao Martins
On 12/02/2024 13:56, Joao Martins wrote: > diff --git a/backends/iommufd.c b/backends/iommufd.c > index 8486894f1b3f..2970135af4b9 100644 > --- a/backends/iommufd.c > +++ b/backends/iommufd.c > @@ -211,6 +211,35 @@ int iommufd_backend_unmap_dma(IOMMUFDBackend *be, > uint32_t ioas_id, >

Re: [PATCH RFCv2 2/8] vfio/iommufd: Introduce auto domain creation

2024-02-12 Thread Joao Martins
On 12/02/2024 16:27, Jason Gunthorpe wrote: > On Mon, Feb 12, 2024 at 01:56:37PM +, Joao Martins wrote: >> There's generally two modes of operation for IOMMUFD: >> >> * The simple user API which intends to perform relatively simple things >> with IOMMUs e.g. DPDK. It generally creates an IOAS

Re: [PATCH RFCv2 2/8] vfio/iommufd: Introduce auto domain creation

2024-02-12 Thread Jason Gunthorpe
On Mon, Feb 12, 2024 at 01:56:37PM +, Joao Martins wrote: > There's generally two modes of operation for IOMMUFD: > > * The simple user API which intends to perform relatively simple things > with IOMMUs e.g. DPDK. It generally creates an IOAS and attach to VFIO > and mainly performs IOAS_MAP