diff options
author | Juergen Gross <[email protected]> | 2021-01-20 14:55:44 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-02-10 12:25:49 +0100 |
commit | 53c9d9240944088274aadbbbafc6138ca462db4f (patch) | |
tree | 240f2116356d20534a96f21db21b469abcd64978 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5b4c6d65019bff65757f61adbbad5e45a333b800 (diff) |
x86/pv: Switch SWAPGS to ALTERNATIVE
SWAPGS is used only for interrupts coming from user mode or for
returning to user mode. So there is no reason to use the PARAVIRT
framework, as it can easily be replaced by an ALTERNATIVE depending
on X86_FEATURE_XENPV.
There are several instances using the PV-aware SWAPGS macro in paths
which are never executed in a Xen PV guest. Replace those with the
plain swapgs instruction. For SWAPGS_UNSAFE_STACK the same applies.
Signed-off-by: Juergen Gross <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Borislav Petkov <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Acked-by: Andy Lutomirski <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[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