summaryrefslogtreecommitdiff
path: root/include/linux/mm_types.h
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2020-09-15 19:30:11 +0300
committerBorislav Petkov <bp@suse.de>2020-09-17 21:22:15 +0300
commit52ad9bc64c74167466e70e0df4b99ee5ccef0078 (patch)
tree407db74ea1e0bb53a9ead1a3ff3b929fd673838d /include/linux/mm_types.h
parentf0f2f9feb4ee6f28729e5388da3c03ce1dac077a (diff)
downloadlinux-52ad9bc64c74167466e70e0df4b99ee5ccef0078.tar.xz
mm: Add a pasid member to struct mm_struct
A PASID is shared by all threads in a process. So the logical place to keep track of it is in the mm_struct. Both ARM and x86 would use this PASID. [ bp: Massage commit message. ] Suggested-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Fenghua Yu <fenghua.yu@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Link: https://lkml.kernel.org/r/1600187413-163670-8-git-send-email-fenghua.yu@intel.com
Diffstat (limited to 'include/linux/mm_types.h')
-rw-r--r--include/linux/mm_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 496c3ff97cce..1ff0615ef19f 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -542,6 +542,10 @@ struct mm_struct {
atomic_long_t hugetlb_usage;
#endif
struct work_struct async_put_work;
+
+#ifdef CONFIG_IOMMU_SUPPORT
+ u32 pasid;
+#endif
} __randomize_layout;
/*