]> git.baikalelectronics.ru Git - kernel.git/commit
xen/debug: WARN_ON when identity PFN has no _PAGE_IOMAP flag set.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 23 Dec 2010 21:25:29 +0000 (16:25 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 14 Mar 2011 15:17:12 +0000 (11:17 -0400)
commit5edb7b6dbac2425315ee9b8434d1c63f4b54a79b
treecd9ef4fdd796c49affe1c3d432a0fd9581c58d64
parentdfba965055b9f6117a35c4cd4f2b28d7be840a9e
xen/debug: WARN_ON when identity PFN has no _PAGE_IOMAP flag set.

Only enabled if XEN_DEBUG is enabled. We print a warning
when:

 pfn_to_mfn(pfn) == pfn, but no VM_IO (_PAGE_IOMAP) flag set
(and pfn is an identity mapped pfn)
 pfn_to_mfn(pfn) != pfn, and VM_IO flag is set.
(ditto, pfn is an identity mapped pfn)

[v2: Make it dependent on CONFIG_XEN_DEBUG instead of ..DEBUG_FS]
[v3: Fix compiler warning]

Reviewed-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/Kconfig
arch/x86/xen/mmu.c