xen/arm: mm: Introduce _PAGE_PRESENT and _PAGE_POPULATE
authorJulien Grall <julien.grall@arm.com>
Mon, 18 Mar 2019 16:17:01 +0000 (16:17 +0000)
committerJulien Grall <julien.grall@arm.com>
Sun, 16 Jun 2019 20:24:45 +0000 (21:24 +0100)
commita61763b450e7f920db798cd4556711d62fd97415
treec2490ea3575b715e7638137abdc5645d4165b63c
parent04c9a21c7a502d1d148bee4771c3790ed4d505a0
xen/arm: mm: Introduce _PAGE_PRESENT and _PAGE_POPULATE

At the moment, the flags are not enough to describe what kind of update
will done on the VA range. They need to be used in conjunction with the
enum xenmap_operation.

It would be more convenient to have all the information for the update
in a single place.

Two new flags are added to remove the relience on xenmap_operation:
    - _PAGE_PRESENT: Indicate whether we are adding/removing the mapping
    - _PAGE_POPULATE: Indicate whether we only populate page-tables

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/include/asm-arm/page.h