[PATCH openEuler-OLK-6.6 030/129] iommu/arm-smmu-v3: Move the CD generation for S1 domains into a function