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: >>>>

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

2023-11-21 Thread Cédric Le Goater
Hello Zhenzhong, Below are other gaps I can think of for now: Gaps: 1. dirty page sync, WIP (Joao) 2. p2p dma not supported yet. 3. fd passing with mdev not support ram discard(vfio-pci) as no way to know it's a mdev from a fd. Call the section Caveats maybe? Got it. It looks like v7 shou

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 01/21] backends/iommufd: Introduce the iommufd object

2023-11-20 Thread Cédric Le Goater
Hello Zhenzhong On 11/20/23 11:07, Duan, Zhenzhong wrote: 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

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. >>&g

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

2023-11-20 Thread Cédric Le Goater
A similar issue with a fix submitted below, ccing related people. https://lists.gnu.org/archive/html/qemu-devel/2023-11/msg02937.html It looks the fix will not work for hotplug. Or below qemu cmdline may help: "-cpu host,host-phys-bits-limit=39" don't you have the same issue with legacy VFIO co

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 Cédric Le Goater
On 11/17/23 14:29, Eric Auger wrote: Hi Cédric, On 11/17/23 12:39, Duan, Zhenzhong wrote: 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

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

2023-11-17 Thread Eric Auger
Hi Cédric, On 11/17/23 12:39, Duan, Zhenzhong wrote: > 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 >> >>

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

2023-11-17 Thread Cédric Le Goater
On 11/17/23 12:39, Duan, Zhenzhong wrote: 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

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, uin

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

2023-11-17 Thread Cédric Le Goater
Hello, +int iommufd_backend_map_dma(IOMMUFDBackend *be, uint32_t ioas_id, hwaddr iova, +ram_addr_t size, void *vaddr, bool readonly) +{ +int ret, fd = be->fd; +struct iommu_ioas_map map = { +.size = sizeof(map), +.flags = IOMMU_IOAS_MAP_READABL

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 v6 01/21] backends/iommufd: Introduce the iommufd object

2023-11-16 Thread Eric Auger
Hi Zhenzhong, On 11/16/23 05:04, Duan, Zhenzhong wrote: > 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 >> >

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 >

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

2023-11-15 Thread Eric Auger
Hi Zhenzhong, On 11/14/23 11:09, Zhenzhong Duan wrote: > From: Eric Auger > > Introduce an iommufd object which allows the interaction > with the host /dev/iommu device. > > The /dev/iommu can have been already pre-opened outside of qemu, > in which case the fd can be passed directly along with t

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

2023-11-15 Thread Cédric Le Goater
On 11/15/23 05:06, Duan, Zhenzhong wrote: -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

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 >> >> Introduc

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

2023-11-14 Thread Cédric Le Goater
On 11/14/23 11:09, Zhenzhong Duan wrote: From: Eric Auger Introduce an iommufd object which allows the interaction with the host /dev/iommu device. The /dev/iommu can have been already pre-opened outside of qemu, in which case the fd can be passed directly along with the iommufd object: This

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

2023-11-14 Thread Zhenzhong Duan
From: Eric Auger Introduce an iommufd object which allows the interaction with the host /dev/iommu device. The /dev/iommu can have been already pre-opened outside of qemu, in which case the fd can be passed directly along with the iommufd object: This allows the iommufd object to be shared accr