Searched refs:gdom_info (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/iommu/amd/ |
| H A D | nested.c | 99 struct guest_domain_mapping_info *gdom_info; in amd_iommu_alloc_domain_nested() local 141 gdom_info = gdom_info_load_or_alloc_locked(&aviommu->gdomid_array, ndom->gdom_id); in amd_iommu_alloc_domain_nested() 142 if (IS_ERR(gdom_info)) { in amd_iommu_alloc_domain_nested() 144 ret = PTR_ERR(gdom_info); in amd_iommu_alloc_domain_nested() 149 if (refcount_inc_not_zero(&gdom_info->users)) { in amd_iommu_alloc_domain_nested() 150 ndom->gdom_info = gdom_info; in amd_iommu_alloc_domain_nested() 154 __func__, ndom->gdom_id, gdom_info->hdom_id); in amd_iommu_alloc_domain_nested() 160 gdom_info->hdom_id = amd_iommu_pdom_id_alloc(); in amd_iommu_alloc_domain_nested() 161 if (gdom_info in amd_iommu_alloc_domain_nested() [all...] |
| H A D | iommu.c | 1554 struct guest_domain_mapping_info *gdom_info; in iommu_flush_pages_v1_hdom_ids() local 1559 xa_for_each(&aviommu->gdomid_array, i, gdom_info) { in iommu_flush_pages_v1_hdom_ids() 1563 iommu->devid, gdom_info->hdom_id); in iommu_flush_pages_v1_hdom_ids() 1564 build_inv_iommu_pages(&cmd, address, size, gdom_info->hdom_id, in iommu_flush_pages_v1_hdom_ids()
|