xen/arm: p2m: Allow to flush cache on any RAM region
authorJulien Grall <julien.grall@arm.com>
Wed, 21 Feb 2018 14:18:44 +0000 (14:18 +0000)
committerJulien Grall <julien.grall@arm.com>
Wed, 12 Dec 2018 16:07:37 +0000 (16:07 +0000)
commitcd851472876ded5b5d10f83a29988f4d2302adea
tree8ba3e21c0fe3c323377fef3f747160b63afd7d56
parent5ec1bdf0c7dd42de0dc9c23694c5195830daf55d
xen/arm: p2m: Allow to flush cache on any RAM region

Currently, we only allow to flush cache on regions mapped as p2m_ram_{rw,ro}.

There are no real problem in cache flushing any RAM regions such as grants
and foreign mapping. Therefore, relax the check to allow flushing the
cache on any RAM region.

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