]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/include/asm/iommu.h
powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group
[karo-tx-linux.git] / arch / powerpc / include / asm / iommu.h
index 5a7267f47bdb1c8bedfee89de9a8a74622cdc0f4..44a20ccf06b4441b75338d3e35b7c972c720c449 100644 (file)
@@ -91,7 +91,7 @@ struct iommu_table {
        struct iommu_pool pools[IOMMU_NR_POOLS];
        unsigned long *it_map;       /* A simple allocation bitmap for now */
        unsigned long  it_page_shift;/* table iommu page size */
-       struct iommu_table_group *it_table_group;
+       struct list_head it_group_list;/* List of iommu_table_group_link */
        struct iommu_table_ops *it_ops;
        void (*set_bypass)(struct iommu_table *tbl, bool enable);
 };
@@ -126,6 +126,12 @@ extern struct iommu_table *iommu_init_table(struct iommu_table * tbl,
                                            int nid);
 #define IOMMU_TABLE_GROUP_MAX_TABLES   1
 
+struct iommu_table_group_link {
+       struct list_head next;
+       struct rcu_head rcu;
+       struct iommu_table_group *table_group;
+};
+
 struct iommu_table_group {
        struct iommu_group *group;
        struct iommu_table *tables[IOMMU_TABLE_GROUP_MAX_TABLES];