diff options
author | Andy Lutomirski <[email protected]> | 2017-09-17 09:03:48 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-09-17 18:59:08 +0200 |
commit | 47061a24e2ee5bd8a40d473d47a5bd823fa0081f (patch) | |
tree | d147d513c17c141d9a3028d00bdc575a168cc659 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 0666f560b71b899cd11a7caf39fd45129e9030fd (diff) |
x86/mm: Factor out CR3-building code
Current, the code that assembles a value to load into CR3 is
open-coded everywhere. Factor it out into helpers build_cr3() and
build_cr3_noflush().
This makes one semantic change: __get_current_cr3_fast() was wrong
on SME systems. No one noticed because the only caller is in the
VMX code, and there are no CPUs with both SME and VMX.
Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tom Lendacky <[email protected]>
Link: http://lkml.kernel.org/r/ce350cf11e93e2842d14d0b95b0199c7d881f527.1505663533.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions