[PATCH v6 03/25] iommu/arm-smmu-v3: Split code with hyp
Jason Gunthorpe
jgg at ziepe.ca
Fri May 1 05:44:45 PDT 2026
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
Jason
More information about the linux-arm-kernel
mailing list