Home
last modified time | relevance | path

Searched refs:gdom_info (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iommu/amd/
H A Dnested.c102 struct guest_domain_mapping_info *gdom_info; in amd_iommu_alloc_domain_nested() local
144 gdom_info = gdom_info_load_or_alloc_locked(&aviommu->gdomid_array, in amd_iommu_alloc_domain_nested()
146 if (IS_ERR(gdom_info)) { in amd_iommu_alloc_domain_nested()
148 ret = PTR_ERR(gdom_info); in amd_iommu_alloc_domain_nested()
153 if (refcount_inc_not_zero(&gdom_info->users)) { in amd_iommu_alloc_domain_nested()
154 ndom->gdom_info = gdom_info; in amd_iommu_alloc_domain_nested()
158 __func__, ndom->gdom_id, gdom_info->hdom_id); in amd_iommu_alloc_domain_nested()
164 gdom_info->hdom_id = amd_iommu_pdom_id_alloc(); in amd_iommu_alloc_domain_nested()
165 if (gdom_info->hdom_id <= 0) { in amd_iommu_alloc_domain_nested()
167 ndom->gdom_id, gdom_info, NULL, GFP_ATOMIC); in amd_iommu_alloc_domain_nested()
[all …]
H A Diommu.c1599 struct guest_domain_mapping_info *gdom_info; in iommu_flush_pages_v1_hdom_ids() local
1604 xa_for_each(&aviommu->gdomid_array, i, gdom_info) { in iommu_flush_pages_v1_hdom_ids()
1608 iommu->devid, gdom_info->hdom_id); in iommu_flush_pages_v1_hdom_ids()
1609 build_inv_iommu_pages(&cmd, address, last, gdom_info->hdom_id, in iommu_flush_pages_v1_hdom_ids()