]> git.baikalelectronics.ru Git - kernel.git/commit
x86, ptdump: Add the functionality to dump an arbitrary pagetable
authorBorislav Petkov <bp@suse.de>
Sat, 18 Jan 2014 11:48:14 +0000 (12:48 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 4 Mar 2014 16:16:17 +0000 (16:16 +0000)
commit019ce111f079eb6a1bc06b79b62e7f264a76d22d
tree262c82db081fe5ea6b3c1da63e6c9b930694a033
parent9e42982e76c9c357c27877525de33e9dd8b69868
x86, ptdump: Add the functionality to dump an arbitrary pagetable

With reusing the ->trampoline_pgd page table for mapping EFI regions in
order to use them after having switched to EFI virtual mode, it is very
useful to be able to dump aforementioned page table in dmesg. This adds
that functionality through the walk_pgd_level() interface which can be
called from somewhere else.

The original functionality of dumping to debugfs remains untouched.

Cc: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/include/asm/pgtable.h
arch/x86/mm/dump_pagetables.c