summaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-11-26 11:13:32 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2009-11-27 14:20:34 +0100
commit7c392cbe984d904f7c89a6a75b2ac245254e8da5 (patch)
tree48b5d1f73cd3814de15d32a0e82a963dd4237f9c /arch/x86/include
parent241000556f751dacd332df6ab2e903a23746e51e (diff)
x86/amd-iommu: Keep devices per domain in a list
This patch introduces a list to each protection domain which keeps all devices associated with the domain. This can be used later to optimize certain functions and to completly remove the amd_iommu_pd_table. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/amd_iommu_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/amd_iommu_types.h b/arch/x86/include/asm/amd_iommu_types.h
index 434e90ed89c..93953d1922c 100644
--- a/arch/x86/include/asm/amd_iommu_types.h
+++ b/arch/x86/include/asm/amd_iommu_types.h
@@ -235,6 +235,7 @@ extern bool amd_iommu_np_cache;
*/
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 */
spinlock_t lock; /* mostly used to lock the page table*/
u16 id; /* the domain id written to the device table */
int mode; /* paging mode (0-6 levels) */
@@ -251,6 +252,7 @@ struct protection_domain {
* This struct contains device specific data for the IOMMU
*/
struct iommu_dev_data {
+ struct list_head list; /* For domain->dev_list */
struct device *alias; /* The Alias Device */
struct protection_domain *domain; /* Domain the device is bound to */
atomic_t bind; /* Domain attach reverent count */