xen/arm: p2m: Introduce a helper to check if an entry is a superpage
authorJulien Grall <julien.grall@arm.com>
Thu, 15 Sep 2016 11:28:32 +0000 (12:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Sep 2016 01:14:08 +0000 (18:14 -0700)
commita48a40e92f470cb8e41dd89b3a2b61e8d7c178e4
tree1b02408c672124f33f4c78c2e53826660c4620a9
parentc781d669117e7f012c2dea13ee0c11167e08aac2
xen/arm: p2m: Introduce a helper to check if an entry is a superpage

Use the level and the entry to know whether an entry is a superpage.
A superpage can only happen below level 3.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/arm/p2m.c