diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2018-01-31 16:54:04 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-13 17:59:49 +0300 |
commit | 1070730c1ad2bd49b0d11112728f1f4390137728 (patch) | |
tree | fe3fceed092504ca19a4a66eb29eb45552dabd02 /arch/x86/mm/debug_pagetables.c | |
parent | aad983913d77af2c3394f29b88d7bb75ebd7d172 (diff) | |
download | linux-1070730c1ad2bd49b0d11112728f1f4390137728.tar.xz |
x86/mm/encrypt: Simplify sme_pgtable_calc()
sme_pgtable_calc() is unnecessary complex. It can be re-written in a
more stream-lined way.
As a side effect, we would get the code ready to boot-time switching
between paging modes.
Tested-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20180131135404.40692-4-kirill.shutemov@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/debug_pagetables.c')
0 files changed, 0 insertions, 0 deletions