xen: arm: avoid reusing incorrect mappings when walking the p2m.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 18 Jul 2014 13:33:59 +0000 (14:33 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 21 Jul 2014 11:15:25 +0000 (12:15 +0100)
commit964fd5a99c13c707c0c3355743ed1fadf88fc9d9
treea592c4e288ac041608b74fde391da97f35287832
parentc30018c884b7285465a27f960c6068ea7373a5db
xen: arm: avoid reusing incorrect mappings when walking the p2m.

When we change which PT page we are mapping at a given level then we need to
invalidate any cached mappings further down the tree, otherwise we risk using
them because their offset might match but be based on a different offset
further up the table.

e.g. when remapping first then cur_first_offset and cur_second_offset (which
indicate the currently mapped second and third tables respectively) both become
invalid

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/p2m.c