Re: [PATCH v3 5/8] iommufd: Associate fault object with iommufd_hw_pgtable

2024-03-01 Thread Zhangfei Gao
On Mon, 22 Jan 2024 at 15:46, Lu Baolu wrote: > > When allocating a user iommufd_hw_pagetable, the user space is allowed to > associate a fault object with the hw_pagetable by specifying the fault > object ID in the page table allocation data and setting the > IOMMU_HWPT_FAULT_ID_VALID flag bit. >

Re: [PATCH v3 5/8] iommufd: Associate fault object with iommufd_hw_pgtable

2024-03-06 Thread Zhangfei Gao
Hi, Baolu On Sat, 2 Mar 2024 at 10:36, Zhangfei Gao wrote: > > On Mon, 22 Jan 2024 at 15:46, Lu Baolu wrote: > > > > When allocating a user iommufd_hw_pagetable, the user space is allowed to > > associate a fault object with the hw_pagetable by specifying the fault &

Re: ext4 error when testing virtio-scsi & vhost-scsi

2016-07-30 Thread Zhangfei Gao
tried 4.7-r2 and 4.5-rc1 on D02 board, both have issue. Since I need kvm specific patch for D02, so it may not freely to switch to older version. 3. Also test with ext4, disabling journal mkfs.ext4 -O ^has_journal /dev/sda Do you have any suggestion? Thanks On Tue, Jul 19, 2016 at 4:21 PM,

Re: ext4 error when testing virtio-scsi & vhost-scsi

2016-07-30 Thread Zhangfei Gao
Hi, Jan On Wed, Jul 27, 2016 at 11:56 PM, Jan Kara wrote: > Hi! > > On Wed 27-07-16 15:58:55, Zhangfei Gao wrote: >> Hi, Michael >> >> I have met ext4 error when using vhost_scsi on arm64 platform, and >> suspect it is vhost_scsi issue. >> >> Ext

Re: ext4 error when testing virtio-scsi & vhost-scsi

2016-07-31 Thread Zhangfei Gao
Hi, Jan On Thu, Jul 28, 2016 at 9:29 AM, Zhangfei Gao wrote: > Hi, Jan > > On Wed, Jul 27, 2016 at 11:56 PM, Jan Kara wrote: >> Hi! >> >> On Wed 27-07-16 15:58:55, Zhangfei Gao wrote: >>> Hi, Michael >>> >>> I have met ext4 error when usi

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-14 Thread Zhangfei Gao
Hi, Baolu On Tue, 2 Jul 2024 at 14:39, Lu Baolu wrote: > > Add iopf-capable hw page table attach/detach/replace helpers. The pointer > to iommufd_device is stored in the domain attachment handle, so that it > can be echo'ed back in the iopf_group. > > The iopf-capable hw page tables can only be a

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-16 Thread Zhangfei Gao
On Wed, 16 Oct 2024 at 23:25, Jason Gunthorpe wrote: > > On Wed, Oct 16, 2024 at 09:58:36AM +0800, Zhangfei Gao wrote: > > On Tue, 15 Oct 2024 at 20:54, Jason Gunthorpe wrote: > > > > > > On Tue, Oct 15, 2024 at 11:19:33AM +0800, Zhangfei Ga

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-17 Thread Zhangfei Gao
On Thu, 17 Oct 2024 at 20:05, Jason Gunthorpe wrote: > > On Thu, Oct 17, 2024 at 09:44:18AM +0800, Zhangfei Gao wrote: > > On Wed, 16 Oct 2024 at 23:25, Jason Gunthorpe wrote: > > > > > > On Wed, Oct 16, 2024 at 09:58:36AM +0800, Zhangfei Gao wrote: > > >

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-17 Thread Zhangfei Gao
Hi, Baolu On Fri, 18 Oct 2024 at 09:58, Baolu Lu wrote: > > On 2024/10/17 21:08, Jason Gunthorpe wrote: > > On Thu, Oct 17, 2024 at 08:35:24PM +0800, Zhangfei Gao wrote: > > > >> Yes, you are right > >> I am using SRIOV vf and stall feature, so is_virtfn =

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-23 Thread Zhangfei Gao
On Tue, 22 Oct 2024 at 22:53, Jason Gunthorpe wrote: > > On Tue, Oct 22, 2024 at 10:30:10PM +0800, Zhangfei Gao wrote: > > On Fri, 18 Oct 2024 at 21:53, Jason Gunthorpe wrote: > > > > > > On Wed, Oct 16, 2024 at 12:25:03PM -0300, Jason Gunthorpe wrote: > > &g

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-22 Thread Zhangfei Gao
On Fri, 18 Oct 2024 at 21:53, Jason Gunthorpe wrote: > > On Wed, Oct 16, 2024 at 12:25:03PM -0300, Jason Gunthorpe wrote: > > > > smmu-v3 needs some more fixing to move that > > > > arm_smmu_master_enable_sva() logic into domain attachment. > > > > > > Will think about this, Thanks Jason > > > > C

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-28 Thread Zhangfei Gao
others. However, we have devices that appear as PCI but are actually on the AMBA bus. These fake PCI devices have PASID capability, support stall as well as SRIOV, so remove the limitation for these devices. Signed-off-by: Zhangfei Gao Signed-off-by: Lu Baolu --- drivers/iommu/iommufd/faul

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-27 Thread Zhangfei Gao
Hi, Baolu On Fri, 18 Oct 2024 at 10:45, Zhangfei Gao wrote: > > Hi, Baolu > > On Fri, 18 Oct 2024 at 09:58, Baolu Lu wrote: > > > > On 2024/10/17 21:08, Jason Gunthorpe wrote: > > > On Thu, Oct 17, 2024 at 08:35:24PM +0800, Zhangfei Gao wrote: > > > >

Re: [PATCH v8 07/10] iommufd: Fault-capable hwpt attach/detach/replace

2024-10-15 Thread Zhangfei Gao
On Tue, 15 Oct 2024 at 20:54, Jason Gunthorpe wrote: > > On Tue, Oct 15, 2024 at 11:19:33AM +0800, Zhangfei Gao wrote: > > > +static int iommufd_fault_iopf_enable(struct iommufd_device *idev) > > > +{ > > > + struct device *dev =