xen/arm: p2m: Rework p2m_cache_flush_range
authorJulien Grall <julien.grall@arm.com>
Thu, 29 Nov 2018 19:02:09 +0000 (19:02 +0000)
committerJulien Grall <julien.grall@arm.com>
Wed, 12 Dec 2018 16:09:22 +0000 (16:09 +0000)
commit8d6e1fe4a71f4048ba770b8312f25ba3adb67d12
tree240605f200571b9a7f8bbaa55c33e37c7c9e19ce
parent927ea50066ba8d1914e1e1801ad9341419c206c4
xen/arm: p2m: Rework p2m_cache_flush_range

A follow-up patch will add support for preemption in p2m_cache_flush_range.
Because of the complexity for the 2 loops, it would be necessary to add
preemption in both of them.

This can be avoided by merging the 2 loops together and still keeping
the code fairly simple to read and extend.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c