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)
commitef6bea6ddf0e76077d0798e57b374015b23a837e
tree262c82db081fe5ea6b3c1da63e6c9b930694a033
parent9b7d204982cf6e4e5b9b0f8bff151e48250cce58
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