x86/boot/compressed/64: Introduce paging_prepare()
commit4440977be1347d43503f381716e4918413b5a6f0
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 9 Feb 2018 14:22:26 +0000 (9 17:22 +0300)
committerIngo Molnar <mingo@kernel.org>
Sun, 11 Feb 2018 11:36:18 +0000 (11 12:36 +0100)
tree2acb2738b14afa7887d4df31774fdc5c2efe6d25
parent7cc4eb1bdd8b082f3d889daccd9412aa10e56165
x86/boot/compressed/64: Introduce paging_prepare()

Rename l5_paging_required() to paging_prepare() and change the
interface of the function.

This is a preparation for the next patch, which would make the function
also allocate memory for the 32-bit trampoline.

The function now returns a 128-bit structure. RAX would return
trampoline memory address (zero for now) and RDX would indicate if we
need to enable 5-level paging.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
[ Typo fixes and general clarification. ]
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@suse.de>
Cc: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20180209142228.21231-3-kirill.shutemov@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/compressed/head_64.S
arch/x86/boot/compressed/pgtable_64.c