Re: [PATCH v2 12/13] iommu/arm-smmu-v3: Introduce struct arm_smmu_vmaster

2024-12-12 Thread Nicolin Chen
On Wed, Dec 11, 2024 at 08:15:35AM +, Tian, Kevin wrote: > > From: Nicolin Chen > > Sent: Wednesday, December 4, 2024 6:10 AM > > > > Use it to store all vSMMU-related data. The vsid (Virtual Stream ID) will > > be the first use case. Then, add a rw_semaphore to protect it. > > > > Also add

RE: [PATCH v2 12/13] iommu/arm-smmu-v3: Introduce struct arm_smmu_vmaster

2024-12-11 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Wednesday, December 4, 2024 6:10 AM > > Use it to store all vSMMU-related data. The vsid (Virtual Stream ID) will > be the first use case. Then, add a rw_semaphore to protect it. > > Also add a pair of arm_smmu_attach_prepare/commit_vmaster helpers and > put > them i

[PATCH v2 12/13] iommu/arm-smmu-v3: Introduce struct arm_smmu_vmaster

2024-12-03 Thread Nicolin Chen
Use it to store all vSMMU-related data. The vsid (Virtual Stream ID) will be the first use case. Then, add a rw_semaphore to protect it. Also add a pair of arm_smmu_attach_prepare/commit_vmaster helpers and put them in the existing arm_smmu_attach_prepare/commit(). Note that identity and blocked o