]> xenbits.xensource.com Git - xen.git/commit
xen: arm: handle variable p2m levels in p2m_lookup
authorIan Campbell <ian.campbell@citrix.com>
Thu, 18 Sep 2014 00:09:52 +0000 (01:09 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 22 Sep 2014 15:44:55 +0000 (16:44 +0100)
commit58f0fd88225a3ff1b87d54316a40a9a5f7c6af57
tree4f91ed158b9d976fa5e9286fcbd8fd019b8a9109
parent67784ca4f9b15b55f075ebef76005af6e2b724b1
xen: arm: handle variable p2m levels in p2m_lookup

This paves the way for boot-time selection of the number of levels to
use in the p2m, which is required to support both 40-bit and 48-bit
systems. For now the starting level remains a compile time constant.

Implemented by turning the linear sequence of lookups into a loop.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/p2m.c