diff options
author | Fenghua Yu <[email protected]> | 2020-09-15 09:30:13 -0700 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-09-17 20:22:15 +0200 |
commit | 20f0afd1fb3d7d44f4a3db5a4b6e904410862140 (patch) | |
tree | 0a2b714214912ec3feecdd2193d0df3e51ea7851 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 1478b99a76534b6c244cfe24fa616280a9441118 (diff) |
x86/mmu: Allocate/free a PASID
A PASID is allocated for an "mm" the first time any thread binds to an
SVA-capable device and is freed from the "mm" when the SVA is unbound
by the last thread. It's possible for the "mm" to have different PASID
values in different binding/unbinding SVA cycles.
The mm's PASID (non-zero for valid PASID or 0 for invalid PASID) is
propagated to a per-thread PASID MSR for all threads within the mm
through IPI, context switch, or inherited. This is done to ensure that a
running thread has the right PASID in the MSR matching the mm's PASID.
[ bp: s/SVM/SVA/g; massage. ]
Suggested-by: Andy Lutomirski <[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]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions