xen: arm: do not panic when failing to translate a guest address
authorIan Campbell <ian.campbell@citrix.com>
Thu, 24 Jan 2013 12:47:55 +0000 (12:47 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 24 Jan 2013 12:47:55 +0000 (12:47 +0000)
commita14447dbcf171cf642bed4bf08db80f28955297e
treeb54e0095b63fa04a7d16d2b0fc423095f26374b8
parentc4e4a1e20e36c7887baeb9f0a186d739fca639f1
xen: arm: do not panic when failing to translate a guest address

The gva_to_{par,ipa} functions currently panic if the guest address
cannot be translated. Often the input comes from the guest so
panicing the host is a bit harsh!

Change the API of those functions to allow them to return a failure
and plumb it through where it is used.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/guestcopy.c
xen/arch/arm/kernel.c
xen/arch/arm/traps.c
xen/include/asm-arm/mm.h
xen/include/asm-arm/page.h
xen/include/asm-arm/processor.h