]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commit
xen/arm: mm: Don't open-code Xen PT update in {set, clear}_fixmap()
authorJulien Grall <julien.grall@arm.com>
Sun, 2 Dec 2018 18:54:06 +0000 (18:54 +0000)
committerJulien Grall <julien.grall@arm.com>
Sun, 16 Jun 2019 20:24:45 +0000 (21:24 +0100)
commit022387ee1ad34b6ac441ee805604ce9fec782517
tree53ec8a8a51ff7f9e3a793d2718dc7071be19d64a
parent53abb9a1dcd99d28ffd0b62e5982a1e82460d288
xen/arm: mm: Don't open-code Xen PT update in {set, clear}_fixmap()

{set, clear}_fixmap() are currently open-coding update to the Xen
page-tables. This can be avoided by using the generic helpers
map_pages_to_xen() and destroy_xen_mappings().

Both function are not meant to fail for fixmap, hence the BUG_ON()
checking the return.

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