xen/debugfs: Add 'p2m' file for printing out the P2M layout.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 22 Dec 2010 13:57:30 +0000 (08:57 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Mar 2011 15:17:11 +0000 (11:17 -0400)
commit2222e71bd6eff7b2ad026d4ee663b6327c5a49f5
tree4c6f6c29e0d879ea0222a7294fa8c03b6af8ce24
parent68df0da7f42be6ae017fe9f48ac414c43a7b9d32
xen/debugfs: Add 'p2m' file for printing out the P2M layout.

We walk over the whole P2M tree and construct a simplified view of
which PFN regions belong to what level and what type they are.

Only enabled if CONFIG_XEN_DEBUG_FS is set.

[v2: UNKN->UNKNOWN, use uninitialized_var]
[v3: Rebased on top of mmu->p2m code split]
[v4: Fixed the else if]
Reviewed-by: Ian Campbell <Ian.Campbell@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/xen/page.h
arch/x86/xen/mmu.c
arch/x86/xen/p2m.c