Re: [PATCH] kdump, vmcoreinfo: Export value to tell if 5-level is enabled
From: Kirill A. Shutemov
Date: Fri Mar 02 2018 - 02:37:17 EST
On Fri, Mar 02, 2018 at 01:18:01PM +0800, Baoquan He wrote:
> Userspace utility needs to know if the corrupted kernel is in
> 5-level paging mode. So write 'pgtable_l5_enabled' to vmcoreinfo.
> It covers below three cases:
> pgtable_l5_enabled == 0 when
> Compile kernel with CONFIG_X86_5LEVEL=n
> Compile with CONFIG_X86_5LEVEL=y while cpu has no 'la57' flag
>
> pgtable_l5_enabled != 0 when
> Compile with CONFIG_X86_5LEVEL=y and cpu has 'la57' flag
>
> Signed-off-by: Baoquan He <bhe@xxxxxxxxxx>
Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
--
Kirill A. Shutemov