x86/boot: Detect 5-level paging support
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 30 Mar 2017 08:07:25 +0000 (11:07 +0300)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Apr 2017 06:22:33 +0000 (08:22 +0200)
commit3677d4c6a2010e4f5a0ca8b617b595fe4cc7ba6b
tree8a63227fdefdfd03eb122168ebb167566c9a156e
parent7f75540ff2ca84dbac26cf9deeb620cbf5646f5e
x86/boot: Detect 5-level paging support

In this initial implementation we force-require 5-level paging support
from the hardware, when compiled with CONFIG_X86_5LEVEL=y. (The kernel
will panic during boot on CPUs that don't support 5-level paging.)

We will implement boot-time switch between 4- and 5-level paging later.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arch@vger.kernel.org
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/20170330080731.65421-2-kirill.shutemov@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/cpucheck.c
arch/x86/boot/cpuflags.c
arch/x86/include/asm/disabled-features.h
arch/x86/include/asm/required-features.h