Re: [PATCH v6 03/25] iommu/arm-smmu-v3: Split code with hyp

From: Mostafa Saleh

Date: Mon May 04 2026 - 08:13:22 EST


On Fri, May 01, 2026 at 09:44:45AM -0300, Jason Gunthorpe wrote:
> On Fri, May 01, 2026 at 11:19:05AM +0000, Mostafa Saleh wrote:
> > +int arm_smmu_cmdq_build_cmd(u64 *cmd, struct arm_smmu_cmdq_ent *ent)
> > +{
> > + memset(cmd, 0, 1 << CMDQ_ENT_SZ_SHIFT);
> > + cmd[0] |= FIELD_PREP(CMDQ_0_OP, ent->opcode);
>
> Hopefully I get to it today, but I am going to post a series that will
> move this logic into the headers while deleting arm_smmu_cmdq_ent. It
> should be directly usable for pkvm as well to achieve this same split
> without having to shove a giant inline into a header file.
>
> https://github.com/jgunthorpe/linux/commits/iommu_pt_arm64/
>
> cover-letter: Remove SMMUv3 struct arm_smmu_cmdq_ent

I see it’s already posted, I will go through it and provide feedback there.

Thanks,
Mostafa

>
> Jason