Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c052e25 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

iommu/arm-smmu: Add getter for DOMAIN_ATTR_SECURE_VMID



It can be useful to query a previously set secure VMID.  Add a domain
attribute getter for this.

Change-Id: Iaf14201d321161ce4ccc69b674a3b1247d6a7e94
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent d0e1cdfd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2278,6 +2278,10 @@ static int arm_smmu_domain_get_attr(struct iommu_domain *domain,
				(1 << DOMAIN_ATTR_COHERENT_HTW_DISABLE));
		ret = 0;
		break;
	case DOMAIN_ATTR_SECURE_VMID:
		*((int *)data) = smmu_domain->secure_vmid;
		ret = 0;
		break;
	case DOMAIN_ATTR_PT_BASE_ADDR:
		*((phys_addr_t *)data) =
			smmu_domain->pgtbl_cfg.arm_lpae_s1_cfg.ttbr[0];