x86/mm: Fix dump_pagetables with Xen PV
authorJuergen Gross <jgross@suse.com>
Fri, 21 Feb 2020 10:38:51 +0000 (11:38 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 29 Feb 2020 11:43:10 +0000 (12:43 +0100)
commitbba42affa732d6fd5bd5c9678e6deacde2de1547
tree2c581d0973e85fe3912d0721edb8e34323fefe75
parent99bcd4a6e5b8ba201fdd252f1054689884899fee
x86/mm: Fix dump_pagetables with Xen PV

Commit 2ae27137b2db89 ("x86: mm: convert dump_pagetables to use
walk_page_range") broke Xen PV guests as the hypervisor reserved hole in
the memory map was not taken into account.

Fix that by starting the kernel range only at GUARD_HOLE_END_ADDR.

Fixes: 2ae27137b2db89 ("x86: mm: convert dump_pagetables to use walk_page_range")
Reported-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Julien Grall <julien@xen.org>
Link: https://lkml.kernel.org/r/20200221103851.7855-1-jgross@suse.com
arch/x86/mm/dump_pagetables.c