diff options
author | Andy Lutomirski <luto@kernel.org> | 2017-09-17 09:03:48 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 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 <luto@kernel.org>
Cc: Borislav Petkov <bpetkov@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom Lendacky <Thomas.Lendacky@amd.com>
Link: http://lkml.kernel.org/r/ce350cf11e93e2842d14d0b95b0199c7d881f527.1505663533.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions