xen/arm: p2m: Only use isb() when it is necessary
authorJulien Grall <julien.grall@arm.com>
Mon, 28 Jan 2019 11:50:24 +0000 (11:50 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 29 Jan 2019 00:53:59 +0000 (16:53 -0800)
commit60bb42bb7569596a7141e73eff8029a401e591cb
tree1c5db324e2d8710963998ad855ce06a163733ece
parentd0122fd7a406d5b9badaa2cb7c0479c3928db74e
xen/arm: p2m: Only use isb() when it is necessary

The EL1 translation regime is out-of-context when running at EL2. This
means the processor cannot speculate memory accesses using the registers
associated to that regime.

An isb() is only needed if Xen is going to use the translation regime
before returning to the guest (exception returns will synchronize the
context).

Remove unnecessary isb() and document the ones left.

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