On Sat, 18 Jan, at 12:48:15PM, Borislav Petkov wrote: > From: Borislav Petkov <bp@xxxxxxx> > > This is very useful for debugging issues with the recently added > pagetable switching code for EFI virtual mode. > > Signed-off-by: Borislav Petkov <bp@xxxxxxx> > Tested-by: Toshi Kani <toshi.kani@xxxxxx> > --- > arch/x86/Kconfig | 9 +++++++++ > arch/x86/include/asm/efi.h | 1 + > arch/x86/platform/efi/efi.c | 1 + > arch/x86/platform/efi/efi_32.c | 1 + > arch/x86/platform/efi/efi_64.c | 9 +++++++++ > 5 files changed, 21 insertions(+) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 02241d8dcab6..ba0d86cca926 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1614,6 +1614,15 @@ config EFI_STUB > > See Documentation/efi-stub.txt for more information. > > +config EFI_PGT_DUMP > + bool "Dump the EFI pagetable" > + depends on EFI && X86_PTDUMP > + ---help--- > + Enable this if you want to dump the EFI page table before > + enabling virtual mode. This can be used to debug miscellaneous > + issues with the mapping of the EFI runtime regions into that > + table. > + Would this be more suitable in arch/x86/Kconfig.debug? -- Matt Fleming, Intel Open Source Technology Center -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html