arm/p2m: Cleanup access to the host's p2m
authorSergej Proskurin <proskurin@sec.in.tum.de>
Tue, 18 Jul 2017 10:33:52 +0000 (12:33 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Jul 2017 22:24:59 +0000 (15:24 -0700)
commitd535d8922f571502252deaf607e82e7475cd1728
treeae845412d616832362c491c455ac410657567eb7
parentb9cd216f74411a699c3e5ce3d25a375af37f096c
arm/p2m: Cleanup access to the host's p2m

This commit substitutes the direct access of the host's p2m
(&d->arch.p2m) for the macro "p2m_get_hostp2m". This macro simplifies
readability and also the differentiation between the host's p2m and
alternative p2m's, i.e., as part of the altp2m subsystem that will be
submitted in the future.

Signed-off-by: Sergej Proskurin <proskurin@sec.in.tum.de>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/mem_access.c
xen/arch/arm/p2m.c