xen/arm: page: Describe the layout of flags used to update page tables
authorJulien Grall <julien.grall@arm.com>
Mon, 9 Oct 2017 13:23:38 +0000 (14:23 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 10 Oct 2017 21:22:19 +0000 (14:22 -0700)
commit5f3edb5f32e511b915d173403d0b7b5ea38e00ad
tree726c37edee8c1c5b1447ee92516b6a80ac332a5d
parent7d68c8db25f0ffc7f39af2fc929f1c77c1affa01
xen/arm: page: Describe the layout of flags used to update page tables

Currently, the flags used to update page tables (i.e PAGE_HYPERVISOR_*)
only contains the memory attribute index. Follow-up patches will add
more information in it. So document the current layout.

At the same time introduce PAGE_AI_MASK to get the memory attribute
index easily.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/include/asm-arm/page.h