xen/arm: mm: Add more ASSERT() in {destroy, modify}_xen_mappings()
authorJulien Grall <jgrall@amazon.com>
Wed, 20 Jul 2022 18:33:01 +0000 (19:33 +0100)
committerJulien Grall <jgrall@amazon.com>
Wed, 20 Jul 2022 18:33:23 +0000 (19:33 +0100)
commitd2cc5633e2800e698c6a64554de7fa19d9627a24
treefb20af307a2e0e1720df3d515c50eefe487c919e
parent72b02bc75b47a7f74d82f812fcbebf0f729f77a8
xen/arm: mm: Add more ASSERT() in {destroy, modify}_xen_mappings()

Both destroy_xen_mappings() and modify_xen_mappings() will take in
parameter a range [start, end[. Both end should be page aligned.

Add extra ASSERT() to ensure start and end are page aligned. Take the
opportunity to rename 'v' to 's' to be consistent with the other helper.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/mm.c
xen/include/xen/mm.h