Skip to content

Commit 52ad9bc

Browse files
Fenghua Yusuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Fenghua Yu <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Tony Luck <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent f0f2f9f commit 52ad9bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/mm_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,10 @@ struct mm_struct {
542542
atomic_long_t hugetlb_usage;
543543
#endif
544544
struct work_struct async_put_work;
545+
546+
#ifdef CONFIG_IOMMU_SUPPORT
547+
u32 pasid;
548+
#endif
545549
} __randomize_layout;
546550

547551
/*

0 commit comments

Comments
 (0)