Re: [RFC PATCH v2 09/20] hw/arm/smmuv3-accel: Add set/unset_iommu_device callback

2025-03-17 Thread Nicolin Chen
; qemu-devel@nongnu.org; > > eric.au...@redhat.com; peter.mayd...@linaro.org; j...@nvidia.com; > > ddut...@redhat.com; berra...@redhat.com; nath...@nvidia.com; > > mo...@nvidia.com; smost...@google.com; Linuxarm > > ; Wangzhou (B) ; > > jiangkunkun ; Jonathan Cameron > >

RE: [RFC PATCH v2 09/20] hw/arm/smmuv3-accel: Add set/unset_iommu_device callback

2025-03-17 Thread Shameerali Kolothum Thodi via
; berra...@redhat.com; nath...@nvidia.com; > mo...@nvidia.com; smost...@google.com; Linuxarm > ; Wangzhou (B) ; > jiangkunkun ; Jonathan Cameron > ; zhangfei....@linaro.org > Subject: Re: [RFC PATCH v2 09/20] hw/arm/smmuv3-accel: Add > set/unset_iommu_device callback > > On T

Re: [RFC PATCH v2 09/20] hw/arm/smmuv3-accel: Add set/unset_iommu_device callback

2025-03-12 Thread Eric Auger
Hi Shameer, On 3/11/25 3:10 PM, Shameer Kolothum wrote: > From: Nicolin Chen > > Implement a set_iommu_device callback: > -Find an existing S2 hwpt to test attach() or allocate a new one >(Devices behind the same physical SMMU should share an S2 HWPT.) > -Attach the device to the S2 hwp >

Re: [RFC PATCH v2 09/20] hw/arm/smmuv3-accel: Add set/unset_iommu_device callback

2025-03-11 Thread Nicolin Chen
On Tue, Mar 11, 2025 at 02:10:34PM +, Shameer Kolothum wrote: > @@ -30,6 +32,185 @@ static SMMUv3AccelDevice *smmuv3_accel_get_dev(SMMUState > *s, SMMUPciBus *sbus, > return accel_dev; > } > > +static bool > +smmuv3_accel_dev_attach_viommu(SMMUv3AccelDevice *accel_dev, > +

[RFC PATCH v2 09/20] hw/arm/smmuv3-accel: Add set/unset_iommu_device callback

2025-03-11 Thread Shameer Kolothum via
From: Nicolin Chen Implement a set_iommu_device callback: -Find an existing S2 hwpt to test attach() or allocate a new one (Devices behind the same physical SMMU should share an S2 HWPT.) -Attach the device to the S2 hwp -Allocate a viommu with the returned s2 hwpt. -Allocate bypass and ab