diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-03-26 12:43:07 (GMT) |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-03-31 13:32:02 (GMT) |
commit | 3f4b87b959eab362b89fce6ceb9d1badd102e5ea (patch) | |
tree | 7059d17f1eebcf2f0e4c62e2a9bba6bbc9f34a11 /drivers/iommu/amd_iommu_types.h | |
parent | a10315e5efb86c689142a7e7927125889f3682e6 (diff) | |
download | linux-3f4b87b959eab362b89fce6ceb9d1badd102e5ea.tar.xz |
iommu/amd: Make use of domain_alloc and domain_free
Implement the new iommu-ops function pointers and remove the
obsolete domain_init and domain_destroy functions.
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_types.h')
-rw-r--r-- | drivers/iommu/amd_iommu_types.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h index c4fffb7..2b1276b 100644 --- a/drivers/iommu/amd_iommu_types.h +++ b/drivers/iommu/amd_iommu_types.h @@ -400,6 +400,8 @@ struct iommu_domain; struct protection_domain { struct list_head list; /* for list of all protection domains */ struct list_head dev_list; /* List of all devices in this domain */ + struct iommu_domain domain; /* generic domain handle used by + iommu core code */ spinlock_t lock; /* mostly used to lock the page table*/ struct mutex api_lock; /* protect page tables in the iommu-api path */ u16 id; /* the domain id written to the device table */ @@ -411,10 +413,7 @@ struct protection_domain { bool updated; /* complete domain flush required */ unsigned dev_cnt; /* devices assigned to this domain */ unsigned dev_iommu[MAX_IOMMUS]; /* per-IOMMU reference count */ - void *priv; /* private data */ - struct iommu_domain *iommu_domain; /* Pointer to generic - domain structure */ - + void *priv; /* private data */ }; /* |