xen/arm: p2m: Add more debug in get_page_from_gva
authorJulien Grall <julien.grall@linaro.org>
Wed, 15 Nov 2017 19:34:14 +0000 (19:34 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Nov 2017 01:37:31 +0000 (17:37 -0800)
commitca4b2e52a894845f26fc5b784f465e31c4cef90b
treec07acfae8ef4753e67506b4b4de6708aac28a770
parent17a33f943ea93daa7e8c61faad6d1dfd16176761
xen/arm: p2m: Add more debug in get_page_from_gva

The function get_page_from_gva is used by copy_*_guest helpers to
translate a guest virtual address to a machine physical address and take
reference on the page.

There are a couple of errors paths that will return the same value making
it difficult to know the exact error. Add more debug in each error patch
only for debug-build.

This should help narrowing down the intermittent failure with the
hypercall GNTTABOP_copy (see [1]).

[1] https://lists.xen.org/archives/html/xen-devel/2017-11/msg00942.html

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c