[<prev] [next>] [day] [month] [year] [list]
Message-ID: <160041495015.15536.4295027285506021453.tip-bot2@tip-bot2>
Date: Fri, 18 Sep 2020 07:42:30 -0000
From: "tip-bot2 for Fenghua Yu" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Christoph Hellwig <hch@...radead.org>,
Fenghua Yu <fenghua.yu@...el.com>,
Borislav Petkov <bp@...e.de>, Tony Luck <tony.luck@...el.com>,
x86 <x86@...nel.org>, LKML <linux-kernel@...r.kernel.org>
Subject: [tip: x86/pasid] mm: Add a pasid member to struct mm_struct
The following commit has been merged into the x86/pasid branch of tip:
Commit-ID: 52ad9bc64c74167466e70e0df4b99ee5ccef0078
Gitweb: https://git.kernel.org/tip/52ad9bc64c74167466e70e0df4b99ee5ccef0078
Author: Fenghua Yu <fenghua.yu@...el.com>
AuthorDate: Tue, 15 Sep 2020 09:30:11 -07:00
Committer: Borislav Petkov <bp@...e.de>
CommitterDate: Thu, 17 Sep 2020 20:22:15 +02:00
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@...radead.org>
Signed-off-by: Fenghua Yu <fenghua.yu@...el.com>
Signed-off-by: Borislav Petkov <bp@...e.de>
Reviewed-by: Tony Luck <tony.luck@...el.com>
Link: https://lkml.kernel.org/r/1600187413-163670-8-git-send-email-fenghua.yu@intel.com
---
include/linux/mm_types.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 496c3ff..1ff0615 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;
/*
Powered by blists - more mailing lists