diff options
author | Peter Zijlstra <peterz@infradead.org> | 2022-02-08 02:02:50 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-02-15 13:31:43 +0300 |
commit | a3d29e8291b622780eb6e4e3eeaf2b24ec78fd43 (patch) | |
tree | 3f0f57f936a5e8bfce5debfb0902168cf37c5a5e /include/linux/sched.h | |
parent | dc7507ddce593cbd9c93330024a5658db6f8ef73 (diff) | |
download | linux-a3d29e8291b622780eb6e4e3eeaf2b24ec78fd43.tar.xz |
sched: Define and initialize a flag to identify valid PASID in the task
Add a new single bit field to the task structure to track whether this task
has initialized the IA32_PASID MSR to the mm's PASID.
Initialize the field to zero when creating a new task with fork/clone.
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
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>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220207230254.3342514-8-fenghua.yu@intel.com
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 75ba8aa60248..4e5de3aed410 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -938,6 +938,9 @@ struct task_struct { /* Recursion prevention for eventfd_signal() */ unsigned in_eventfd_signal:1; #endif +#ifdef CONFIG_IOMMU_SVA + unsigned pasid_activated:1; +#endif unsigned long atomic_flags; /* Flags requiring atomic access. */ |