xen/arm: Allow lpae_is_{table, mapping} helpers to work on invalid entry
authorJulien Grall <julien.grall@arm.com>
Mon, 8 Oct 2018 18:33:39 +0000 (19:33 +0100)
committerJulien Grall <julien.grall@arm.com>
Thu, 22 Nov 2018 14:17:16 +0000 (14:17 +0000)
commitf4ac5a9bd044c0cc54531a82d7eb5b2f2ce89853
tree2cf843e77db87e870d798bcd83de3d47cdedc5dd
parentf4febe5bfb1b70c219aef5f96fd3e6de7f59cd75
xen/arm: Allow lpae_is_{table, mapping} helpers to work on invalid entry

Currently, lpae_is_{table, mapping} helpers will always return false on
entries with the valid bit unset. However, it would be useful to have them
operating on any entry. For instance to store information in advance but
still request a fault.

With that change, the p2m is now providing an overlay for *_is_{table,
mapping} that will check the valid bit of the entry.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/guest_walk.c
xen/arch/arm/mm.c
xen/arch/arm/p2m.c
xen/include/asm-arm/lpae.h